import request from '@/utils/request'
const prePath = '/asset'

//资产设置-使用分类
//查询使用分类
export function getUseStatusTree(params) {
  return request({
    url: prePath + '/settings/useStatus/tree',
    method: 'get',
    params,
  })
}
// 新增使用分类
export function addUseStatus(data) {
  return request({
    url: prePath + '/settings/useStatus',
    method: 'post',
    data,
  })
}
// 更新使用分类
export function updateUseStatus(data) {
  return request({
    url: prePath + '/settings/useStatus',
    method: 'put',
    data,
  })
}
// 删除产品分类
export function deleteUseStatusById(id) {
  return request({
    url: prePath + '/settings/useStatus/' + id,
    method: 'delete',
  })
}
// 查询使用分类详情
export function getUseStatusDetailsById(id) {
  return request({
    url: prePath + '/settings/useStatus/' + id,
    method: 'get',
  })
}
// 分页查询产品分类
export function useStatusPage(params) {
  return request({
    url: prePath + '/settings/useStatus/useStatusPage',
    method: 'get',
    params,
  })
}
// ==========资产转移==========
// 自定义查询列表
export function getAssetTransferPage(data) {
  return request({
    url: prePath + '/assetTransfer/customizeList/page',
    method: 'post',
    data,
  })
}
//新增资产转移单
export function createAssetTranfer(data) {
  return request({
    url: prePath + '/assetTransfer',
    method: 'post',
    data,
  })
}
// 新增并保存
export function createAssetTranferAndSave(data) {
  return request({
    url: prePath + '/assetTransfer/saveAndSubmit',
    method: 'post',
    data,
  })
}
//更新资产转移单
export function updateAssetTranfer(data) {
  return request({
    url: prePath + '/assetTransfer',
    method: 'put',
    data,
  })
}
//提交资产转移单据
export function submitAssetTransfer(data) {
  return request({
    url: prePath + '/assetTransfer/submit',
    method: 'post',
    data,
  })
}
// 提交资产校验刷新接口
export function refreshAssetTransfer(id) {
  return request({
    url: prePath + `/assetTransfer/refresh/${id}`,
    method: 'get',
  })
}
//删除资产转移单据
export function removeAssetTransfer(data) {
  return request({
    url: prePath + '/assetTransfer',
    method: 'delete',
    data,
  })
}
//批准资产转移单据
export function checkAssetTransfer(data) {
  return request({
    url: prePath + '/assetTransfer/approved',
    method: 'post',
    data,
  })
}
//*资产转移-批量批准
export function auditBatchAssetTransfer(data) {
  return request({
    url: prePath + '/assetTransfer/batchApproved',
    method: 'post',
    data,
  })
}
//驳回资产转移单据
export function rejectAssetTransfer(data) {
  return request({
    url: prePath + '/assetTransfer/reject',
    method: 'post',
    data,
  })
}
//拒绝资产转移单据
export function refuseAssetTransfer(data) {
  return request({
    url: prePath + '/assetTransfer/refuse',
    method: 'post',
    data,
  })
}
//复核资产转移单据
export function reviewAssetTransfer(data) {
  return request({
    url: prePath + '/assetTransfer/review',
    method: 'post',
    data,
  })
}
//退回资产转移单据
export function doReturnAssetTransfer(data) {
  return request({
    url: prePath + '/assetTransfer/doReturn',
    method: 'post',
    data,
  })
}
//调整资产转移单据
export function adjustmentAssetTransfer(data) {
  return request({
    url: prePath + '/assetTransfer/adjustment',
    method: 'post',
    data,
  })
}
//取消资产转移单据
export function doCancelAssetTransfer(data) {
  return request({
    url: prePath + '/assetTransfer/doCancel',
    method: 'post',
    data,
  })
}
//撤回资产转移单据
export function revokeAssetTransfer(data) {
  return request({
    url: prePath + '/assetTransfer/revoke',
    method: 'post',
    data,
  })
}
//销审资产转移单据
export function salesReviewTransfer(data) {
  return request({
    url: prePath + '/assetTransfer/cancelCheck',
    method: 'post',
    data,
  })
}
//获取资产转移单
export function getAssetTransfer(id) {
  return request({
    url: prePath + '/assetTransfer/' + id,
    method: 'get',
  })
}
//资产转移详情
export function getAssetTransferDetailCustomizeListAll(data) {
  return request({
    url: prePath + '/assetTransferDetail/customizeList/all',
    method: 'post',
    data,
  })
}
//资产转移删除
export function deleteAssetTransferDetailByIds(data) {
  return request({
    url: prePath + '/assetTransferDetail',
    method: 'delete',
    data,
  })
}
//资产转移明细查询
export function getAssetTransferDetailListPage(data) {
  return request({
    url: prePath + '/assetTransferDetail/customizeList/page',
    method: 'post',
    data,
  })
}
//资产转移明细分组
export function getAssetTransferDetailCustomizeGroups(data) {
  return request({
    url: prePath + '/assetTransferDetail/customizeGroups',
    method: 'post',
    data,
  })
}
//资产转移订单页导出
export function exportAssetTransferOrderList(data) {
  return request({
    url: prePath + '/assetTransfer/excelOrderList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}
//资产转移订单页打印
export function printAssetTransferOrderList(data) {
  return request({
    url: prePath + '/assetTransfer/printOrderList',
    method: 'post',
    data,
  })
}
//资产转移导出订单详情页
export function excelAssetTransferOrder(data) {
  return request({
    url: prePath + '/assetTransfer/excelOrder',
    responseType: 'blob',
    method: 'post',
    data,
  })
}
//资产转移详情打印
export function printAssetTransferOrder(data) {
  return request({
    url: prePath + '/assetTransfer/printOrder',
    method: 'post',
    data,
  })
}
//资产转移明细页导出
export function excelAssetTransferDetail(data) {
  return request({
    url: prePath + '/assetTransferDetail/excelDetailList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}
//资产转移明细页打印
export function printAssetTransferDetailList(data) {
  return request({
    url: prePath + '/assetTransferDetail/printDetailList',
    method: 'post',
    data,
  })
}

/** 资产管理--资产设置--资产分类*/
//查询资产分类
export function getCategoryTree(params) {
  return request({
    url: prePath + '/settings/financialClassify/tree',
    method: 'get',
    params,
  })
}
// 新增资产分类
export function addCategory(data) {
  return request({
    url: prePath + '/settings/financialClassify',
    method: 'post',
    data,
  })
}
// 更新资产分类
export function updateCategory(data) {
  return request({
    url: prePath + '/settings/financialClassify',
    method: 'put',
    data,
  })
}
// 删除资产分类
export function deleteCategoryById(id) {
  return request({
    url: prePath + '/settings/financialClassify/' + id,
    method: 'delete',
  })
}
// 查询资产分类详情
export function getCategoryDetailsById(id) {
  return request({
    url: prePath + '/settings/financialClassify/' + id,
    method: 'get',
  })
}

// 导出资产分类
export function exportCategory(params) {
  return request({
    url: prePath + '/settings/financialClassify/excel',
    method: 'get',
    params,
    responseType: 'blob',
  })
}
//弹出框分页查询
export function getCategoryPage(params) {
  return request({
    url: prePath + '/settings/financialClassify/page',
    method: 'get',
    params,
  })
}

/** 资产管理--资产设置--医疗器械分类目录*/
//查询医疗器械分类目录
export function getClassificationTree(params) {
  return request({
    url: prePath + '/settings/classification/tree',
    method: 'get',
    params,
  })
}
// 新增医疗器械分类目录
export function addClassification(data) {
  return request({
    url: prePath + '/settings/classification',
    method: 'post',
    data,
  })
}
// 更新医疗器械分类目录
export function updateClassification(data) {
  return request({
    url: prePath + '/settings/classification',
    method: 'put',
    data,
  })
}
// 删除医疗器械分类目录
export function deleteClassificationByIds(data) {
  return request({
    url: prePath + '/settings/classification',
    method: 'delete',
    data,
  })
}
// 查询医疗器械分类目录详情
export function getClassificationDetailsById(id) {
  return request({
    url: prePath + '/settings/classification/' + id,
    method: 'get',
  })
}

// 导出医疗器械分类目录
export function exportClassification(params) {
  return request({
    url: prePath + '/settings/classification/excel',
    method: 'get',
    params,
    responseType: 'blob',
  })
}
//弹出框分页查询医疗器械分类目录
export function getClassificationPage(params) {
  return request({
    url: prePath + '/settings/classification/page',
    method: 'get',
    params,
  })
}
//弹出框全部查询医疗器械分类目录
export function getClassificationAll(params) {
  return request({
    url: prePath + '/settings/classification/all',
    method: 'get',
    params,
  })
}

//调整单据流水
export function getAdjustAffairAll(params) {
  return request({
    url: prePath + '/adjustAffair/all',
    method: 'get',
    params,
  })
}

//资产减少单据流水
export function getReduceAffairAll(params) {
  return request({
    url: prePath + '/reduceAffair/all',
    method: 'get',
    params,
  })
}

//资产盘点列表
export function assetInventoryCustomizeListPage(data) {
  return request({
    url: prePath + '/inventoryOrder/customizeList/page',
    method: 'post',
    data,
  })
}

//资产盘点锁库
export function assetInventoryOrderLockStock(data) {
  return request({
    url: prePath + '/inventoryOrder/lockStock',
    method: 'post',
    data,
  })
}

//资产盘点关闭
export function assetInventoryOrderUnLockStock(data) {
  return request({
    url: prePath + '/inventoryOrder/unLockStock',
    method: 'post',
    data,
  })
}

//根据{id}获取一条获取盘点数据id
export function getAssetInventoryOrderById(id) {
  return request({
    url: prePath + '/inventoryOrder/' + id,
    method: 'get',
  })
}

//创建盘点单
export function assetCreateInventoryOrder(data) {
  return request({
    url: prePath + '/inventoryOrder',
    method: 'post',
    data,
  })
}
//创建盘点单
export function inventoryOrderScan(data) {
  return request({
    url: prePath + '/inventoryOrder/scan',
    method: 'post',
    data,
  })
}

//更新盘点单
export function assetUpdateInventoryOrder(data) {
  return request({
    url: prePath + '/inventoryOrder',
    method: 'put',
    data,
  })
}

//资产盘点详情分组
export function assetInventoryOrderDetailCustomizeGroups(data) {
  return request({
    url: prePath + '/inventoryOrderDetail/customizeGroups',
    method: 'post',
    data,
  })
}

//资产盘点详情
export function assetInventoryOrderDetailCustomizeListAll(data) {
  return request({
    url: prePath + '/inventoryOrderDetail/customizeList/all',
    method: 'post',
    data,
  })
}
//资产盘点详情更新
export function putInventoryOrderDetail(data) {
  return request({
    url: prePath + '/inventoryOrderDetail',
    method: 'put',
    data,
  })
}
//资产盘点详情差异处理
export function processDiffInventoryOrderDetail(id) {
  return request({
    url: prePath + '/inventoryOrder/processDiff/' + id,
    method: 'post',
  })
}
//资产盘点详情导出
export function inventoryOrderDetailExcelDetailList(data) {
  return request({
    url: prePath + '/inventoryOrderDetail/excelDetailList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}

//资产盘点详情打印
export function inventoryOrderDetailPrintDetailList(data) {
  return request({
    url: prePath + '/inventoryOrderDetail/printDetailList',
    method: 'post',
    data,
  })
}
//资产盘点详情导出
export function inventoryOrderExcelOrder(data) {
  return request({
    url: prePath + '/inventoryOrder/excelOrder',
    responseType: 'blob',
    method: 'post',
    data,
  })
}

//资产盘点详情打印
export function inventoryOrderPrintOrder(data) {
  return request({
    url: prePath + '/inventoryOrder/printOrder',
    method: 'post',
    data,
  })
}

//资产盘点打印盘点表
export function inventoryOrderOfflinePrint(data) {
  return request({
    url: prePath + '/inventoryOrder/printOffline',
    method: 'post',
    data,
  })
}
//资产盘点打印盘点表
export function inventoryOrderExcelOffline(data) {
  return request({
    url: prePath + '/inventoryOrder/excelOffline',
    method: 'post',
    responseType: 'blob',
    data,
  })
}

//盘点打印 单据列表打印
export function printInventoryOrderList(data) {
  return request({
    url: prePath + '/inventoryOrder/printOrderList',
    method: 'post',
    data,
  })
}

//盘点详情打印 明细打印
export function printInventoryOrderDetailList(data) {
  return request({
    url: prePath + '/inventoryOrderDetail/printDetailList',
    method: 'post',
    data,
  })
}

//盘点导出订单详情页
export function excelInventoryOrder(data) {
  return request({
    url: prePath + '/inventoryOrder/excelOrder',
    responseType: 'blob',
    method: 'post',
    data,
  })
}

//盘点导出订单页
export function excelInventoryOrderList(data) {
  return request({
    url: prePath + '/inventoryOrder/excelOrderList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}
//盘点导出明细页
export function excelInventoryOrderDetail(data) {
  return request({
    url: prePath + '/inventoryOrderDetail/excelDetailList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}

//资产盘点详情导出
export function inventoryPlanOrderExcelOrder(data) {
  return request({
    url: prePath + '/inventoryPlanOrder/excelOrder',
    responseType: 'blob',
    method: 'post',
    data,
  })
}

//资产盘点详情打印
export function inventoryPlanOrderPrintOrder(data) {
  return request({
    url: prePath + '/inventoryPlanOrder/printOrder',
    method: 'post',
    data,
  })
}

//盘点导出订单详情页
export function excelInventoryPlanOrder(data) {
  return request({
    url: prePath + '/inventoryPlanOrder/excelOrder',
    responseType: 'blob',
    method: 'post',
    data,
  })
}
//资产盘点详情打印
export function inventoryPlanOrderPrintOrderList(data) {
  return request({
    url: prePath + '/inventoryPlanOrder/printDetailList',
    method: 'post',
    data,
  })
}

//盘点计划导出订单页
export function excelInventoryPlanDetailList(data) {
  return request({
    url: prePath + '/inventoryPlanOrder/excelDetailList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}

//资产盘点打印盘点表
export function inventoryPlanOrderOfflinePrint(data) {
  return request({
    url: prePath + '/inventoryPlanOrder/printOffline',
    method: 'post',
    data,
  })
}
//资产盘点打印盘点表
export function inventoryPlanOrderExcelOffline(data) {
  return request({
    url: prePath + '/inventoryPlanOrder/excelOffline',
    method: 'post',
    responseType: 'blob',
    data,
  })
}

//盘点打印 单据列表打印
export function printInventoryPlanOrderList(data) {
  return request({
    url: prePath + '/inventoryPlanOrder/printOrderList',
    method: 'post',
    data,
  })
}

//盘点计划导出订单页
export function excelInventoryPlanOrderList(data) {
  return request({
    url: prePath + '/inventoryPlanOrder/excelOrderList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}

//盘点详情打印 明细打印
export function printInventoryTaskOrderDetailList(data) {
  return request({
    url: prePath + '/inventoryTaskOrderDetail/printDetailList',
    method: 'post',
    data,
  })
}

//盘点导出明细页
export function excelInventoryTaskOrderDetail(data) {
  return request({
    url: prePath + '/inventoryTaskOrderDetail/excelDetailList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}

//资产盘点详情导出
export function inventoryTaskOrderExcelOrder(data) {
  return request({
    url: prePath + '/inventoryTaskOrder/excelOrder',
    responseType: 'blob',
    method: 'post',
    data,
  })
}

//资产盘点详情打印
export function inventoryTaskOrderPrintOrder(data) {
  return request({
    url: prePath + '/inventoryTaskOrder/printOrder',
    method: 'post',
    data,
  })
}

//资产盘点打印盘点表
export function inventoryTaskOrderOfflinePrint(data) {
  return request({
    url: prePath + '/inventoryTaskOrder/printOffline',
    method: 'post',
    data,
  })
}
//资产盘点打印盘点表
export function inventoryTaskOrderExcelOffline(data) {
  return request({
    url: prePath + '/inventoryTaskOrder/excelOffline',
    method: 'post',
    responseType: 'blob',
    data,
  })
}

//盘点打印 单据列表打印
export function printInventoryTaskOrderList(data) {
  return request({
    url: prePath + '/inventoryTaskOrder/printOrderList',
    method: 'post',
    data,
  })
}
//盘点计划导出订单页
export function excelInventoryTaskOrderList(data) {
  return request({
    url: prePath + '/inventoryTaskOrder/excelOrderList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}

//资产盘点
export function assetInventoryOrderDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/inventoryOrderDetail/customizeList/page',
    method: 'post',
    data,
  })
}

//调整单自定义列表分页
export function adjustOrderCustomizeListPage(data) {
  return request({
    url: prePath + '/adjustOrder/customizeList/page',
    method: 'post',
    data,
  })
}
//调整单自定义列表所有
export function adjustOrderCustomizeListAll(data) {
  return request({
    url: prePath + '/adjustOrder/customizeList/all',
    method: 'post',
    data,
  })
}
//调整单明细自定义列表所有
export function adjustOrderDetailCustomizeListAll(data) {
  return request({
    url: prePath + '/adjustOrderDetail/customizeList/all',
    method: 'post',
    data,
  })
}
//调整单明细自定义列表分页
export function adjustOrderDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/adjustOrderDetail/customizeList/page',
    method: 'post',
    data,
  })
}
//调整单明细自定义列表分组
export function adjustOrderDetailCustomizeGroups(data) {
  return request({
    url: prePath + '/adjustOrderDetail/customizeGroups',
    method: 'post',
    data,
  })
}
//id获取调整单
export function getAdjustOrderById(id) {
  return request({
    url: prePath + '/adjustOrder/' + id,
    method: 'get',
  })
}

/*原值调整接口*/

//原值调整列表新增
export function createAdjustOrder(data) {
  return request({
    url: prePath + '/adjustOriginal',
    method: 'post',
    data,
  })
}
export function createAdjustOrderAndSave(data) {
  return request({
    url: prePath + '/adjustOriginal/saveAndSubmit',
    method: 'post',
    data,
  })
}
//原值调整列表删除
export function deleteAdjustOrder(data) {
  return request({
    url: prePath + '/adjustOriginal',
    method: 'delete',
    data,
  })
}
//原值调整列表跟新
export function updateAdjustOrder(data) {
  return request({
    url: prePath + '/adjustOriginal',
    method: 'put',
    data,
  })
}
//原值调整列表审核
export function checkAdjustOrder(data) {
  return request({
    url: prePath + '/adjustOriginal/approved',
    method: 'post',
    data,
  })
}
//原值调整列表审核-流程
export function flowApprovedAdjustOrder(data) {
  return request({
    url: prePath + '/adjustOriginal/flowApproved',
    method: 'post',
    data,
  })
}

//原值调整列表导出订单详情页
export function excelAdjustOrder(data) {
  return request({
    url: prePath + '/adjustOriginal/excelOrder',
    responseType: 'blob',
    method: 'post',
    data,
  })
}

//原值调整列表导出订单页
export function excelAdjustOrderList(data) {
  return request({
    url: prePath + '/adjustOriginal/excelOrderList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}
//原值调整列表审核导出明细页
export function excelAdjustOrderDetail(data) {
  return request({
    url: prePath + '/adjustOriginalOrderDetail/excelDetailList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}

//原值调整列核详情打印
export function printAdjustOrder(data) {
  return request({
    url: prePath + '/adjustOriginal/printOrder',
    method: 'post',
    data,
  })
}

//原值调整列表详情打印 单据列表打印
export function printAdjustOrderList(data) {
  return request({
    url: prePath + '/adjustOriginal/printOrderList',
    method: 'post',
    data,
  })
}

//原值调整列表详情打印 明细打印
export function printAdjustOrderDetailList(data) {
  return request({
    url: prePath + '/adjustOriginalOrderDetail/printDetailList',
    method: 'post',
    data,
  })
}
//原值调整列表驳回
export function rejectAdjustOrder(data) {
  return request({
    url: prePath + '/adjustOriginal/reject',
    method: 'post',
    data,
  })
}
//原值调整列表驳回-流程
export function flowRejectAdjustOrder(data) {
  return request({
    url: prePath + '/adjustOriginal/flowReject',
    method: 'post',
    data,
  })
}
//原值调整列表拒绝
export function refuseAdjustOrder(data) {
  return request({
    url: prePath + '/adjustOriginal/refuse',
    method: 'post',
    data,
  })
}
//原值调整列表拒绝-流程
export function flowRefuseAdjustOrder(data) {
  return request({
    url: prePath + '/adjustOriginal/flowRefuse',
    method: 'post',
    data,
  })
}
//原值调整列表撤回
export function revokeAdjustOrder(data) {
  return request({
    url: prePath + '/adjustOriginal/revoke',
    method: 'post',
    data,
  })
}
//原值调整列表提交
export function submitAdjustOrder(data) {
  return request({
    url: prePath + '/adjustOriginal/submit',
    method: 'post',
    data,
  })
}
//原值调整列表提交-流程
export function flowSubmitAdjustOrder(data) {
  return request({
    url: prePath + '/adjustOriginal/flowSubmit',
    method: 'post',
    data,
  })
}
//原值调整列表取消
export function cancelAdjustOrder(data) {
  return request({
    url: prePath + '/adjustOriginal/cancel',
    method: 'post',
    data,
  })
}
//原值调整列表销审
export function cancelAuditAdjustOrder(data) {
  return request({
    url: prePath + '/adjustOriginal/cancelAudit',
    method: 'post',
    data,
  })
}
//原值调整列表调整
export function adjustAdjustOrder(data) {
  return request({
    url: prePath + '/adjustOriginal/adjust',
    method: 'post',
    data,
  })
}

/*使用状态调整接口*/

//使用状态调整列表新增
export function createAdjustUseStatus(data) {
  return request({
    url: prePath + '/adjustUseStatus',
    method: 'post',
    data,
  })
}
//使用状态调整列表删除
export function deleteAdjustUseStatus(data) {
  return request({
    url: prePath + '/adjustUseStatus',
    method: 'delete',
    data,
  })
}
//使用状态调整列表跟新
export function updateAdjustUseStatus(data) {
  return request({
    url: prePath + '/adjustUseStatus',
    method: 'put',
    data,
  })
}
//使用状态调整列表审核
export function checkAdjustUseStatus(data) {
  return request({
    url: prePath + '/adjustUseStatus/check',
    method: 'post',
    data,
  })
}

//使用状态调整列表导出订单详情页
export function excelAdjustUseStatus(data) {
  return request({
    url: prePath + '/adjustUseStatus/excelOrder',
    responseType: 'blob',
    method: 'post',
    data,
  })
}

//使用状态调整列表导出订单页
export function excelAdjustUseStatusList(data) {
  return request({
    url: prePath + '/adjustUseStatus/excelOrderList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}
//使用状态调整列表审核导出明细页
export function excelAdjustUseStatusDetail(data) {
  return request({
    url: prePath + '/adjustUseStatusOrderDetail/excelDetailList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}

//使用状态调整列核详情打印
export function printAdjustUseStatus(data) {
  return request({
    url: prePath + '/adjustUseStatus/printOrder',
    method: 'post',
    data,
  })
}

//使用状态调整列表详情打印 单据列表打印
export function printAdjustUseStatusList(data) {
  return request({
    url: prePath + '/adjustUseStatus/printOrderList',
    method: 'post',
    data,
  })
}

//使用状态调整列表详情打印 明细打印
export function printAdjustUseStatusDetailList(data) {
  return request({
    url: prePath + '/adjustUseStatusOrderDetail/printDetailList',
    method: 'post',
    data,
  })
}
//使用状态调整列表驳回
export function rejectAdjustUseStatus(data) {
  return request({
    url: prePath + '/adjustUseStatus/reject',
    method: 'post',
    data,
  })
}
//使用状态调整列表撤回
export function revokeAdjustUseStatus(data) {
  return request({
    url: prePath + '/adjustUseStatus/revoke',
    method: 'post',
    data,
  })
}
//使用状态调整列表提交
export function submitAdjustUseStatus(data) {
  return request({
    url: prePath + '/adjustUseStatus/submit',
    method: 'post',
    data,
  })
}
//使用状态调整列表取消
export function cancelAdjustUseStatus(data) {
  return request({
    url: prePath + '/adjustUseStatus/cancel',
    method: 'post',
    data,
  })
}
//使用状态调整列表调整
export function adjustAdjustUseStatus(data) {
  return request({
    url: prePath + '/adjustUseStatus/adjust',
    method: 'post',
    data,
  })
}
/*使用月限调整接口*/

//使用月限调整列表新增
export function createAdjustDeprMonths(data) {
  return request({
    url: prePath + '/adjustDeprMonths',
    method: 'post',
    data,
  })
}
//使用月限调整列表删除
export function deleteAdjustDeprMonths(data) {
  return request({
    url: prePath + '/adjustDeprMonths',
    method: 'delete',
    data,
  })
}
//使用月限调整列表跟新
export function updateAdjustDeprMonths(data) {
  return request({
    url: prePath + '/adjustDeprMonths',
    method: 'put',
    data,
  })
}
//使用月限调整列表审核
export function checkAdjustDeprMonths(data) {
  return request({
    url: prePath + '/adjustDeprMonths/check',
    method: 'post',
    data,
  })
}

//使用月限调整列表导出订单详情页
export function excelAdjustDeprMonths(data) {
  return request({
    url: prePath + '/adjustDeprMonths/excelOrder',
    responseType: 'blob',
    method: 'post',
    data,
  })
}

//使用月限调整列表导出订单页
export function excelAdjustDeprMonthsList(data) {
  return request({
    url: prePath + '/adjustDeprMonths/excelOrderList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}
//使用月限调整列表审核导出明细页
export function excelAdjustDeprMonthsDetail(data) {
  return request({
    url: prePath + '/adjustDeprMonthsOrderDetail/excelDetailList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}

//使用月限调整列核详情打印
export function printAdjustDeprMonths(data) {
  return request({
    url: prePath + '/adjustDeprMonths/printOrder',
    method: 'post',
    data,
  })
}

//使用月限调整列表详情打印 单据列表打印
export function printAdjustDeprMonthsList(data) {
  return request({
    url: prePath + '/adjustDeprMonths/printOrderList',
    method: 'post',
    data,
  })
}

//使用月限调整列表详情打印 明细打印
export function printAdjustDeprMonthsDetailList(data) {
  return request({
    url: prePath + '/adjustDeprMonthsOrderDetail/printDetailList',
    method: 'post',
    data,
  })
}
//使用月限调整列表驳回
export function rejectAdjustDeprMonths(data) {
  return request({
    url: prePath + '/adjustDeprMonths/reject',
    method: 'post',
    data,
  })
}
//使用月限调整列表撤回
export function revokeAdjustDeprMonths(data) {
  return request({
    url: prePath + '/adjustDeprMonths/revoke',
    method: 'post',
    data,
  })
}
//使用月限调整列表提交
export function submitAdjustDeprMonths(data) {
  return request({
    url: prePath + '/adjustDeprMonths/submit',
    method: 'post',
    data,
  })
}
//使用月限调整列表取消
export function cancelAdjustDeprMonths(data) {
  return request({
    url: prePath + '/adjustDeprMonths/cancel',
    method: 'post',
    data,
  })
}
//使用月限调整列表调整
export function adjustAdjustDeprMonths(data) {
  return request({
    url: prePath + '/adjustDeprMonths/adjust',
    method: 'post',
    data,
  })
}

/*残值率调整接口*/

//残值率调整列表新增
export function createResidualRateOrder(data) {
  return request({
    url: prePath + '/adjustResidualRate',
    method: 'post',
    data,
  })
}
//残值率调整列表删除
export function deleteResidualRateOrder(data) {
  return request({
    url: prePath + '/adjustResidualRate',
    method: 'delete',
    data,
  })
}
//残值率调整列表跟新
export function updateResidualRateOrder(data) {
  return request({
    url: prePath + '/adjustResidualRate',
    method: 'put',
    data,
  })
}
//残值率调整列表审核
export function checkResidualRateOrder(data) {
  return request({
    url: prePath + '/adjustResidualRate/check',
    method: 'post',
    data,
  })
}

//残值率调整列表导出订单详情页
export function excelResidualRateOrder(data) {
  return request({
    url: prePath + '/adjustResidualRate/excelOrder',
    responseType: 'blob',
    method: 'post',
    data,
  })
}

//残值率调整列表导出订单页
export function excelResidualRateOrderList(data) {
  return request({
    url: prePath + '/adjustResidualRate/excelOrderList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}
//残值率调整列表审核导出明细页
export function excelResidualRateOrderDetail(data) {
  return request({
    url: prePath + '/adjustResidualRateOrderDetail/excelDetailList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}

//残值率调整列核详情打印
export function printResidualRateOrder(data) {
  return request({
    url: prePath + '/adjustResidualRate/printOrder',
    method: 'post',
    data,
  })
}

//残值率调整列表详情打印 单据列表打印
export function printResidualRateOrderList(data) {
  return request({
    url: prePath + '/adjustResidualRate/printOrderList',
    method: 'post',
    data,
  })
}

//残值率调整列表详情打印 明细打印
export function printResidualRateOrderDetailList(data) {
  return request({
    url: prePath + '/adjustResidualRateOrderDetail/printDetailList',
    method: 'post',
    data,
  })
}
//残值率调整列表驳回
export function rejectResidualRateOrder(data) {
  return request({
    url: prePath + '/adjustResidualRate/reject',
    method: 'post',
    data,
  })
}
//残值率调整列表撤回
export function revokeResidualRateOrder(data) {
  return request({
    url: prePath + '/adjustResidualRate/revoke',
    method: 'post',
    data,
  })
}
//残值率调整列表提交
export function submitResidualRateOrder(data) {
  return request({
    url: prePath + '/adjustResidualRate/submit',
    method: 'post',
    data,
  })
}
//残值率调整列表取消
export function cancelResidualRateOrder(data) {
  return request({
    url: prePath + '/adjustResidualRate/cancel',
    method: 'post',
    data,
  })
}
//残值率调整列表调整
export function adjustResidualRateOrder(data) {
  return request({
    url: prePath + '/adjustResidualRate/adjust',
    method: 'post',
    data,
  })
}

/*累计折旧额调整接口*/

//累计折旧额调整列表新增
export function createSumDeprAmountOrder(data) {
  return request({
    url: prePath + '/adjustSumDeprAmount',
    method: 'post',
    data,
  })
}
//累计折旧额调整列表删除
export function deleteSumDeprAmountOrder(data) {
  return request({
    url: prePath + '/adjustSumDeprAmount',
    method: 'delete',
    data,
  })
}
//累计折旧额调整列表跟新
export function updateSumDeprAmountOrder(data) {
  return request({
    url: prePath + '/adjustSumDeprAmount',
    method: 'put',
    data,
  })
}
//累计折旧额调整列表审核
export function checkSumDeprAmountOrder(data) {
  return request({
    url: prePath + '/adjustSumDeprAmount/check',
    method: 'post',
    data,
  })
}

//累计折旧额调整列表导出订单详情页
export function excelSumDeprAmountOrder(data) {
  return request({
    url: prePath + '/adjustSumDeprAmount/excelOrder',
    responseType: 'blob',
    method: 'post',
    data,
  })
}

//累计折旧额调整列表导出订单页
export function excelSumDeprAmountOrderList(data) {
  return request({
    url: prePath + '/adjustSumDeprAmount/excelOrderList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}
//累计折旧额调整列表审核导出明细页
export function excelSumDeprAmountOrderDetail(data) {
  return request({
    url: prePath + '/adjustSumDeprAmountOrderDetail/excelDetailList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}

//累计折旧额调整列核详情打印
export function printSumDeprAmountOrder(data) {
  return request({
    url: prePath + '/adjustSumDeprAmount/printOrder',
    method: 'post',
    data,
  })
}

//累计折旧额调整列表详情打印 单据列表打印
export function printSumDeprAmountOrderList(data) {
  return request({
    url: prePath + '/adjustSumDeprAmount/printOrderList',
    method: 'post',
    data,
  })
}

//累计折旧额调整列表详情打印 明细打印
export function printSumDeprAmountOrderDetailList(data) {
  return request({
    url: prePath + '/adjustSumDeprAmountOrderDetail/printDetailList',
    method: 'post',
    data,
  })
}
//累计折旧额调整列表驳回
export function rejectSumDeprAmountOrder(data) {
  return request({
    url: prePath + '/adjustSumDeprAmount/reject',
    method: 'post',
    data,
  })
}
//累计折旧额调整列表撤回
export function revokeSumDeprAmountOrder(data) {
  return request({
    url: prePath + '/adjustSumDeprAmount/revoke',
    method: 'post',
    data,
  })
}
//累计折旧额调整列表提交
export function submitSumDeprAmountOrder(data) {
  return request({
    url: prePath + '/adjustSumDeprAmount/submit',
    method: 'post',
    data,
  })
}
//累计折旧额调整列表取消
export function cancelSumDeprAmountOrder(data) {
  return request({
    url: prePath + '/adjustSumDeprAmount/cancel',
    method: 'post',
    data,
  })
}
//累计折旧额调整列表调整
export function adjustSumDeprAmountOrder(data) {
  return request({
    url: prePath + '/adjustSumDeprAmount/adjust',
    method: 'post',
    data,
  })
}

/*折旧方法调整接口*/

//折旧方法调整列表新增
export function createDeprMethodOrder(data) {
  return request({
    url: prePath + '/adjustDeprMethod',
    method: 'post',
    data,
  })
}
//折旧方法调整列表删除
export function deleteDeprMethodOrder(data) {
  return request({
    url: prePath + '/adjustDeprMethod',
    method: 'delete',
    data,
  })
}
//折旧方法调整列表跟新
export function updateDeprMethodOrder(data) {
  return request({
    url: prePath + '/adjustDeprMethod',
    method: 'put',
    data,
  })
}
//折旧方法调整列表审核
export function checkDeprMethodOrder(data) {
  return request({
    url: prePath + '/adjustDeprMethod/check',
    method: 'post',
    data,
  })
}

//折旧方法调整列表导出订单详情页
export function excelDeprMethodOrder(data) {
  return request({
    url: prePath + '/adjustDeprMethod/excelOrder',
    responseType: 'blob',
    method: 'post',
    data,
  })
}

//折旧方法调整列表导出订单页
export function excelDeprMethodOrderList(data) {
  return request({
    url: prePath + '/adjustDeprMethod/excelOrderList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}
//折旧方法调整列表审核导出明细页
export function excelDeprMethodOrderDetail(data) {
  return request({
    url: prePath + '/adjustDeprMethodOrderDetail/excelDetailList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}

//折旧方法调整列核详情打印
export function printDeprMethodOrder(data) {
  return request({
    url: prePath + '/adjustDeprMethod/printOrder',
    method: 'post',
    data,
  })
}

//折旧方法调整列表详情打印 单据列表打印
export function printDeprMethodOrderList(data) {
  return request({
    url: prePath + '/adjustDeprMethod/printOrderList',
    method: 'post',
    data,
  })
}

//折旧方法调整列表详情打印 明细打印
export function printDeprMethodOrderDetailList(data) {
  return request({
    url: prePath + '/adjustDeprMethodOrderDetail/printDetailList',
    method: 'post',
    data,
  })
}
//折旧方法调整列表驳回
export function rejectDeprMethodOrder(data) {
  return request({
    url: prePath + '/adjustDeprMethod/reject',
    method: 'post',
    data,
  })
}
//折旧方法调整列表撤回
export function revokeDeprMethodOrder(data) {
  return request({
    url: prePath + '/adjustDeprMethod/revoke',
    method: 'post',
    data,
  })
}
//折旧方法调整列表提交
export function submitDeprMethodOrder(data) {
  return request({
    url: prePath + '/adjustDeprMethod/submit',
    method: 'post',
    data,
  })
}
//折旧方法调整列表取消
export function cancelDeprMethodOrder(data) {
  return request({
    url: prePath + '/adjustDeprMethod/cancel',
    method: 'post',
    data,
  })
}
//折旧方法调整列表调整
export function adjustDeprMethodOrder(data) {
  return request({
    url: prePath + '/adjustDeprMethod/adjust',
    method: 'post',
    data,
  })
}

//资产折旧详情分组
export function assetDepreciationCustomizeGroups(data) {
  return request({
    url: prePath + '/depreciation/customizeGroups',
    method: 'post',
    data,
  })
}

//资产折旧列表
export function assetDepreciationCustomizeListPage(data) {
  return request({
    url: prePath + '/depreciation/customizeList/page',
    method: 'post',
    data,
  })
}

//资产折旧列表
export function assetDepreciationCustomizeListAll(data) {
  return request({
    url: prePath + '/depreciation/customizeList/all',
    method: 'post',
    data,
  })
}

//资产折旧列表
export function assetDepreciationAll(params) {
  return request({
    url: prePath + '/depreciation/all',
    method: 'get',
    params,
  })
}

//资产折旧保存
export function saveAssetDepreciation(data) {
  return request({
    url: prePath + `/depreciation/save`,
    method: 'post',
    data,
  })
}

//资产折旧列表导出
export function excelAssetDepreciationList(data) {
  return request({
    url: prePath + '/depreciation/excelOrderList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}

//资产折旧列表详情打印 单据列表打印
export function printAssetDepreciationList(data) {
  return request({
    url: prePath + '/depreciation/printOrderList',
    method: 'post',
    data,
  })
}
//资产折旧
export function depreciationDoDepr(data) {
  return request({
    url: prePath + '/depreciation/doDepr',
    method: 'post',
    showLoading: true,
    data,
  })
}
//资产折旧
export function depreciationRollbackDepr(data) {
  return request({
    url: prePath + '/depreciation/rollbackDepr',
    method: 'post',
    showLoading: true,
    data,
  })
}

/**资产报废接口 开始 */
//*资产报废列表
export function assetDealCustomizeListPage(data) {
  return request({
    url: prePath + '/deal/customizeList/page',
    method: 'post',
    data,
  })
}
export function assetDealCustomizeListAll(data) {
  return request({
    url: prePath + '/deal/customizeList/all',
    method: 'post',
    data,
  })
}
export function getAssetDealById(id) {
  return request({
    url: prePath + '/deal/' + id,
    method: 'get',
  })
}
//*资产处置列表新增
export function createAssetDeal(data) {
  return request({
    url: prePath + '/deal',
    method: 'post',
    data,
  })
}
export function createAssetDealAndSave(data) {
  return request({
    url: prePath + '/deal/saveAndSubmit',
    method: 'post',
    data,
  })
}

//*资产处置列表更新
export function updateAssetDeal(data) {
  return request({
    url: prePath + '/deal',
    method: 'put',
    data,
  })
}
//*资产处置列表删除
export function deleteAssetDeal(data) {
  return request({
    url: prePath + '/deal',
    method: 'delete',
    data,
  })
}
//资产处置列表提交
export function submitAssetDeal(data) {
  return request({
    url: prePath + '/deal/submit',
    method: 'post',
    data,
  })
}
//资产处置表取消
export function cancelAssetDeal(data) {
  return request({
    url: prePath + '/deal/cancel',
    method: 'post',
    data,
  })
}
//资产处置列表复核
export function reviewAssetDeal(data) {
  return request({
    url: prePath + '/deal/review',
    method: 'post',
    data,
  })
}
//资产处置列表报废
export function dealAsset(data) {
  return request({
    url: prePath + '/deal/deal',
    method: 'post',
    data,
  })
}

export function backAssetDeal(data) {
  return request({
    url: prePath + '/deal/back',
    method: 'post',
    data,
  })
}

//*资产处置列表导出订单详情页
export function excelAssetDeal(data) {
  return request({
    url: prePath + '/deal/excelOrder',
    responseType: 'blob',
    method: 'post',
    data,
  })
}

//*资产处置列表导出订单页
export function excelAssetDealList(data) {
  return request({
    url: prePath + '/deal/excelOrderList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}
//*资产处置列表审核导出明细页
export function excelAssetDealDetail(data) {
  return request({
    url: prePath + '/dealDetail/excelDetailList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}

//*资产处置列核详情打印
export function printAssetDeal(data) {
  return request({
    url: prePath + '/deal/printOrder',
    method: 'post',
    data,
  })
}

//*资产处置列表详情打印 单据列表打印
export function printAssetDealList(data) {
  return request({
    url: prePath + '/deal/printOrderList',
    method: 'post',
    data,
  })
}

//*资产处置列表详情打印 明细打印
export function printAssetDealDetailList(data) {
  return request({
    url: prePath + '/dealDetail/printDetailList',
    method: 'post',
    data,
  })
}
//*资产处置列表-单批准
export function auditAssetDeal(data) {
  return request({
    url: prePath + '/deal/approved',
    method: 'post',
    data,
  })
}
//*资产处置列表-批量批准
export function auditBatchAssetDeal(data) {
  return request({
    url: prePath + '/deal/batchApproved',
    method: 'post',
    data,
  })
}
//*资产处置列表驳回
export function rejectAssetDeal(data) {
  return request({
    url: prePath + '/deal/reject',
    method: 'post',
    data,
  })
}
//*资产处置列表拒绝
export function refuseAssetDeal(data) {
  return request({
    url: prePath + '/deal/refuse',
    method: 'post',
    data,
  })
}
//资产处置列表撤回
export function revokeAssetDeal(data) {
  return request({
    url: prePath + '/deal/revoke',
    method: 'post',
    data,
  })
}
//资产处置列表销审
export function salesReviewAssetDeal(data) {
  return request({
    url: prePath + '/deal/cancelCheck',
    method: 'post',
    data,
  })
}

//资产处置详情
export function assetDealDetailCustomizeListAll(data) {
  return request({
    url: prePath + '/dealDetail/customizeList/all',
    method: 'post',
    data,
  })
}
// 资产处置原值合计
export function assetDealCustomizeSum(data) {
  return request({
    url: prePath + '/dealDetail/customizeSum',
    method: 'post',
    data,
  })
}
//资产处置详情
export function assetDealDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/dealDetail/customizeList/page',
    method: 'post',
    data,
  })
}
//资产处置情分组
export function assetDealDetailCustomizeGroups(data) {
  return request({
    url: prePath + '/dealDetail/customizeGroups',
    method: 'post',
    data,
  })
}

//获取会计期间
export function fiscalPeriodPage(params) {
  return request({
    url: prePath + '/settings/fiscalPeriod/page',
    method: 'get',
    params,
  })
}

//新增盘点计划
export function createInventoryOrderPlan(data) {
  return request({
    url: prePath + '/inventoryPlanOrder',
    method: 'post',
    data,
  })
}
//跟新盘点计划
export function updateInventoryOrderPlan(data) {
  return request({
    url: prePath + '/inventoryPlanOrder',
    method: 'put',
    data,
  })
}
//获取盘点计划订单页
export function getInventoryOrderPlanPage(data) {
  return request({
    url: prePath + '/inventoryPlanOrder/customizeList/page',
    method: 'post',
    data,
  })
}
//删除盘点计划
export function deleteInventoryOrderPlan(data) {
  return request({
    url: prePath + '/inventoryPlanOrder',
    method: 'delete',
    data,
  })
}
//id获取盘点计划
export function getInventoryOrderPlanById(id) {
  return request({
    url: prePath + '/inventoryPlanOrder/' + id,
    method: 'get',
  })
}
//发布盘点计划
export function publishInventoryOrderPlan(data) {
  return request({
    url: prePath + '/inventoryPlanOrder/publish',
    method: 'post',
    data,
  })
}
//关闭盘点计划
export function closeInventoryOrderPlan(data) {
  return request({
    url: prePath + '/inventoryPlanOrder/close',
    method: 'post',
    data,
  })
}
//撤回盘点计划
export function revokeInventoryOrderPlan(data) {
  return request({
    url: prePath + '/inventoryPlanOrder/revoke',
    method: 'post',
    data,
  })
}
//确认盘点计划
export function confirmInventoryOrderPlan(data) {
  return request({
    url: prePath + '/inventoryPlanOrder/confirm',
    method: 'post',
    data,
  })
}
//获取全部盘点任务
export function getInventoryTaskOrderCustomizeListAll(data) {
  return request({
    url: prePath + '/inventoryTaskOrder/customizeList/all',
    method: 'post',
    data,
  })
}
//分页获取盘点任务
export function getInventoryTaskOrderCustomizeListPage(data) {
  return request({
    url: prePath + '/inventoryTaskOrder/customizeList/page',
    method: 'post',
    data,
  })
}
//全部获取盘点任务详情
export function getInventoryTaskOrderDetailCustomizeListAll(data) {
  return request({
    url: prePath + '/inventoryTaskOrderDetail/customizeList/all',
    method: 'post',
    data,
  })
}
//获取一条盘点任务
export function getInventoryTaskOrderById(id) {
  return request({
    url: prePath + '/inventoryTaskOrder/' + id,
    method: 'get',
  })
}
//分页获取盘点任务详情
export function getInventoryTaskOrderDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/inventoryTaskOrderDetail/customizeList/page',
    method: 'post',
    data,
  })
}
//分组获取盘点任务详情
export function getInventoryTaskOrderDetailCustomizeListGroup(data) {
  return request({
    url: prePath + '/inventoryTaskOrderDetail/customizeList/customizeGroups',
    method: 'post',
    data,
  })
}
//更新盘点任务数据
export function putInventoryTaskOrderDetail(data) {
  return request({
    url: prePath + '/inventoryTaskOrderDetail/updateDetail',
    method: 'put',
    data,
  })
}
//更新盘点相关人
export function inventoryTaskOrderUpdateInventoryUser(data) {
  return request({
    url: prePath + '/inventoryTaskOrder/updateInventoryUser',
    method: 'post',
    data,
  })
}
//关闭盘点任务
export function closeInventoryTaskOrder(data) {
  return request({
    url: prePath + '/inventoryTaskOrder/close',
    method: 'post',
    data,
  })
}
//撤回盘点任务
export function revokeInventoryTaskOrder(data) {
  return request({
    url: prePath + '/inventoryTaskOrder/revoke',
    method: 'post',
    data,
  })
}
//完成盘点任务
export function finishInventoryInventoryTaskOrder(data) {
  return request({
    url: prePath + '/inventoryTaskOrder/finishInventory',
    method: 'post',
    data,
  })
}
//盘点任务扫码
export function inventoryTaskOrderScan(data) {
  return request({
    url: prePath + '/inventoryTaskOrder/scan',
    method: 'post',
    data,
  })
}
//盘盈审核列表
export function getInventorySurplusCustomizeListPage(data) {
  return request({
    url: prePath + '/inventorySurplus/customizeList/page',
    method: 'post',
    data,
  })
}
//盘盈新增
export function createInsertInventorySurplus(data) {
  return request({
    url: prePath + '/inventoryTaskOrderDetail/insertInventorySurplus',
    method: 'post',
    data,
  })
}
//盘盈修改
export function updateInsertInventorySurplus(data) {
  return request({
    url: prePath + '/inventoryTaskOrderDetail/updateInventorySurplus',
    method: 'put',
    data,
  })
}
//盘盈删除
export function delInventoryTaskOrderDetail(id) {
  return request({
    url: prePath + '/inventoryTaskOrderDetail/' + id,
    method: 'delete',
  })
}
//盘盈审核
export function ratifyInventorySurplus(data) {
  return request({
    url: prePath + '/inventorySurplus/ratify',
    method: 'post',
    data,
  })
}
//盘盈撤回
export function revokeInventorySurplus(data) {
  return request({
    url: prePath + '/inventorySurplus/revoke',
    method: 'post',
    data,
  })
}
//获取单条盘盈
export function getInventorySurplus(params) {
  return request({
    url: prePath + '/inventorySurplus',
    method: 'get',
    params,
  })
}
//获取单条盘盈
export function getInventorySurplusRecord(params) {
  return request({
    url: prePath + '/inventorySurplusRecord',
    method: 'get',
    params,
  })
}
/**资产处置接口 结束 */

/** 资产管理--资产设置--配件分类*/
//查询医疗器械分类目录
export function getAccessoriesCategoryTree(params) {
  return request({
    url: prePath + '/settings/accessories/tree',
    method: 'get',
    params,
  })
}
// 新增医疗器械分类目录
export function addAccessoriesCategory(data) {
  return request({
    url: prePath + '/settings/accessories',
    method: 'post',
    data,
  })
}
// 更新医疗器械分类目录
export function updateAccessoriesCategory(data) {
  return request({
    url: prePath + '/settings/accessories',
    method: 'put',
    data,
  })
}
// 删除医疗器械分类目录
export function deleteAccessoriesCategoryByIds(data) {
  return request({
    url: prePath + '/settings/accessories',
    method: 'delete',
    data,
  })
}
// 查询医疗器械分类目录详情
export function getAccessoriesCategoryDetailsById(id) {
  return request({
    url: prePath + '/settings/accessories/' + id,
    method: 'get',
  })
}

// 导出医疗器械分类目录
export function exportAccessoriesCategory(params) {
  return request({
    url: prePath + '/settings/accessories/excel',
    method: 'get',
    params,
    responseType: 'blob',
  })
}
//弹出框分页查询医疗器械分类目录
export function getAccessoriesCategoryPage(params) {
  return request({
    url: prePath + '/settings/accessories/page',
    method: 'get',
    params,
  })
}

/**资产管理--资产设置--配件分类完成**/

/**资产管理-器具计量检定**/
//计量器具检定计划自定义表格分页
export function getInstrumentsPlanPage(data) {
  return request({
    url: prePath + '/assetManage/instrumentsPlan/customizeList/page',
    method: 'post',
    data,
  })
}

//检定记录详情
export function getRecordByPlanId(planId) {
  return request({
    url: prePath + '/assetManage/instrumentsRecord/getRecordByPlanId/' + planId,
    method: 'get',
  })
}

//检定记录录入保存
export function updateRecord(data) {
  return request({
    url: prePath + '/assetManage/instrumentsRecord/updateById',
    method: 'put',
    data,
  })
}

//检定记录录入保存
export function entryRecord(data) {
  return request({
    url: prePath + '/assetManage/instrumentsRecord/entry',
    method: 'post',
    data,
  })
}

export function getInstrumentsHistoryRecordCustomizeListPage(data) {
  return request({
    url: prePath + '/assetManage/instrumentsHistoryRecord/customizeList/page',
    method: 'post',
    data,
  })
}

//导出计量器具检定历史记录
export function exportExcelInstrumentsHistoryRecord(data) {
  return request({
    url: prePath + `/assetManage/instrumentsHistoryRecord/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}

export function getInstrumentsHistoryRecordCustomizeGroups(data) {
  //获取计量器具检定历史记录分组
  return request({
    url: prePath + '/assetManage/instrumentsHistoryRecord/customizeGroups',
    method: 'post',
    data,
  })
}

export function instrumentsHistoryRecordCustomizeListAll(data) {
  //计量器具检定历史记录明细
  return request({
    url: prePath + '/assetManage/instrumentsHistoryRecord/customizeList/all',
    method: 'post',
    data,
  })
}

//检定历史记录
export function getInstrumentsHistoryRecordAll(params) {
  return request({
    url: prePath + '/assetManage/instrumentsHistoryRecord/all',
    method: 'get',
    params,
  })
}

/**资产管理-器具计量检定结束**/

//资产字典手动收货扫码
export function assetDictScan(data) {
  return request({
    url: prePath + '/setting/assetDict/scan',
    method: 'post',
    data,
  })
}

/**财务资产-财务类别调整**/
//财务类别调整自定义列表分页
export function adjustFinanceTypeCustomizeListPage(data) {
  return request({
    url: prePath + '/adjustFinanceType/customizeList/page',
    method: 'post',
    data,
  })
}
//财务类别调整明细自定义列表所有
export function adjustFinanceTypeOrderDetailCustomizeListAll(data) {
  return request({
    url: prePath + '/adjustFinanceTypeOrderDetail/customizeList/all',
    method: 'post',
    data,
  })
}
//财务类别调整单明细自定义列表分页
export function adjustFinanceTypeOrderDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/adjustFinanceTypeOrderDetail/customizeList/page',
    method: 'post',
    data,
  })
}
//财务类别调整单明细自定义列表分组
export function adjustFinanceTypeOrderDetailCustomizeGroups(data) {
  return request({
    url: prePath + '/adjustFinanceTypeOrderDetail/customizeGroups',
    method: 'post',
    data,
  })
}
//财务类别调整列表审核导出明细页
export function excelAdjustFinanceTypeOrder(data) {
  return request({
    url: prePath + '/adjustFinanceType/excelOrder',
    responseType: 'blob',
    method: 'post',
    data,
  })
}
//财务类别调整列表审核导出明细页
export function excelAdjustFinanceTypeOrderDetailList(data) {
  return request({
    url: prePath + '/adjustFinanceTypeOrderDetail/excelDetailList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}
//财务类别调整列表详情打印 明细打印
export function printAdjustFinanceTypeOrder(data) {
  return request({
    url: prePath + '/adjustFinanceType/printOrder',
    method: 'post',
    data,
  })
}
//财务类别调整列表详情打印 明细打印
export function printAdjustFinanceTypeOrderDetailList(data) {
  return request({
    url: prePath + '/adjustFinanceTypeOrderDetail/printDetailList',
    method: 'post',
    data,
  })
}
//财务类别调整列表删除
export function deleteAdjustFinanceTypeOrder(data) {
  return request({
    url: prePath + '/adjustFinanceType',
    method: 'delete',
    data,
  })
}
//财务类别调整列表提交
export function submitAdjustFinanceTypeOrder(data) {
  return request({
    url: prePath + '/adjustFinanceType/submit',
    method: 'post',
    data,
  })
}
export function flowSubmitAdjustFinanceTypeOrder(data) {
  return request({
    url: prePath + '/adjustFinanceType/flowSubmit',
    method: 'post',
    data,
  })
}
//财务类别调整列表审核
export function checkAdjustFinanceTypeOrder(data) {
  return request({
    url: prePath + '/adjustFinanceType/approved',
    method: 'post',
    data,
  })
}
export function flowApprovedAdjustFinanceTypeOrder(data) {
  return request({
    url: prePath + '/adjustFinanceType/flowApproved',
    method: 'post',
    data,
  })
}
//财务类别调整列表销审
export function cancelAuditAdjustFinanceType(data) {
  return request({
    url: prePath + '/adjustFinanceType/cancelAudit',
    method: 'post',
    data,
  })
}
//财务类别调整列表拒绝
export function refuseAdjustFinanceType(data) {
  return request({
    url: prePath + '/adjustFinanceType/refuse',
    method: 'post',
    data,
  })
}
//财务类别调整列表拒绝-流程
export function flowRefuseAdjustFinanceTyper(data) {
  return request({
    url: prePath + '/adjustFinanceType/flowRefuse',
    method: 'post',
    data,
  })
}
//财务类别调整列表驳回
export function rejectAdjustFinanceTypeOrder(data) {
  return request({
    url: prePath + '/adjustFinanceType/reject',
    method: 'post',
    data,
  })
}
export function flowRejectAdjustFinanceTypeOrder(data) {
  return request({
    url: prePath + '/adjustFinanceType/flowReject',
    method: 'post',
    data,
  })
}
//财务类别调整列表撤回
export function revokeAdjustFinanceTypeOrder(data) {
  return request({
    url: prePath + '/adjustFinanceType/revoke',
    method: 'post',
    data,
  })
}
//财务类别调整列表取消
export function cancelAdjustFinanceTypeOrder(data) {
  return request({
    url: prePath + '/adjustFinanceType/cancel',
    method: 'post',
    data,
  })
}
//财务类别调整列表调整
export function adjustAdjustFinanceTypeOrder(data) {
  return request({
    url: prePath + '/adjustFinanceType/adjust',
    method: 'post',
    data,
  })
}
export function excelAdjustFinanceTypeOrderList(data) {
  return request({
    url: prePath + '/adjustFinanceType/excelOrderList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}
//财务类别调整列表详情打印 单据列表打印
export function printAdjustFinanceTypeOrderList(data) {
  return request({
    url: prePath + '/adjustFinanceType/printOrderList',
    method: 'post',
    data,
  })
}
//id获取财务类别调整单
export function getAdjustFinanceTypeById(id) {
  return request({
    url: prePath + '/adjustFinanceType/' + id,
    method: 'get',
  })
}
//财务类别调整列表新增
export function createAdjustFinanceType(data) {
  return request({
    url: prePath + '/adjustFinanceType',
    method: 'post',
    data,
  })
}
export function createAdjustFinanceTypeAndSave(data) {
  return request({
    url: prePath + '/adjustFinanceType/saveAndSubmit',
    method: 'post',
    data,
  })
}
//财务类别调整列表跟新
export function updateAdjustFinanceType(data) {
  return request({
    url: prePath + '/adjustFinanceType',
    method: 'put',
    data,
  })
}
/** 资产管理--资产设置--资产分类*/
//查询资产分类
export function getClassifyTree(params) {
  return request({
    url: prePath + '/settings/classify/tree',
    method: 'get',
    params,
  })
}
// 新增资产分类
export function addClassify(data) {
  return request({
    url: prePath + '/settings/classify',
    method: 'post',
    data,
  })
}
// 更新资产分类
export function updateClassify(data) {
  return request({
    url: prePath + '/settings/classify',
    method: 'put',
    data,
  })
}
// 删除资产分类
export function deleteClassifyByIds(data) {
  return request({
    url: prePath + '/settings/classify',
    method: 'delete',
    data,
  })
}
// 查询资产分类详情
export function getClassifyDetailsById(id) {
  return request({
    url: prePath + '/settings/classify/' + id,
    method: 'get',
  })
}
// 导出资产分类
export function exportClassify(params) {
  return request({
    url: prePath + '/settings/classify/excel',
    method: 'get',
    params,
    responseType: 'blob',
  })
}
//弹出框分页查询资产分类
export function getClassifyPage(params) {
  return request({
    url: prePath + '/settings/classify/page',
    method: 'get',
    params,
  })
}
//弹出框全部查询资产分类
export function getClassifyAll(params) {
  return request({
    url: prePath + '/settings/classify/all',
    method: 'get',
    params,
  })
}
//关联询资产分类
export function relationClassify(data) {
  return request({
    url: prePath + '/settings/classify/relation',
    method: 'post',
    data,
  })
}

//设备申论新增
export function createAssetApplication(data) {
  return request({
    url: prePath + '/application',
    method: 'post',
    data,
  })
}
export function createAssetApplicationAndSave(data) {
  return request({
    url: prePath + '/application/saveAndSubmit',
    method: 'post',
    data,
  })
}
//设备申论修改
export function updateAssetApplication(data) {
  return request({
    url: prePath + '/application',
    method: 'put',
    data,
  })
}

// 设备申论分页查询
export function getAssetApplicationCustomizeListPage(data) {
  return request({
    url: prePath + '/application/customizeList/page',
    method: 'post',
    data,
  })
}

// 设备申论分页查询
export function getQuoteAssetApplicationListPage(data) {
  return request({
    url: prePath + '/application/selectForQuote',
    method: 'post',
    data,
  })
}

// 设备申论全部查询
export function getAssetApplicationCustomizeListAll(data) {
  return request({
    url: prePath + '/application/customizeList/all',
    method: 'post',
    data,
  })
}

//获取设备申论详情
export function selectAssetApplicationById(id) {
  return request({
    url: prePath + '/application/' + id,
    method: 'get',
  })
}

// 设备申论提交
export function assetApplicationSubmit(data) {
  return request({
    url: prePath + '/application/submit',
    method: 'post',
    data,
  })
}

// 设备申论审核
export function assetApplicationCheck(data) {
  return request({
    url: prePath + '/application/check',
    method: 'post',
    data,
  })
}

// 设备申论删除
export function assetApplicationDelete(data) {
  return request({
    url: prePath + '/application',
    method: 'delete',
    data,
  })
}

// 设备申论撤回
export function assetApplicationRevoke(data) {
  return request({
    url: prePath + '/application/revoke',
    method: 'post',
    data,
  })
}

// 设备申论驳回
export function assetApplicationReject(data) {
  return request({
    url: prePath + '/application/reject',
    method: 'post',
    data,
  })
}

//打印申论列表
export function printAssetApplicationList(data) {
  return request({
    url: prePath + '/application/print',
    method: 'post',
    data,
  })
}

//打印申论详情
export function printAssetApplicationDetail(data) {
  return request({
    url: prePath + '/application/print',
    method: 'post',
    data,
  })
}

//导出设备申论明细
export function exportAssetApplicationDetail(data) {
  return request({
    url: prePath + `/application/detailExcel`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}

//导出设备申论列表
export function exportAssetApplicationList(data) {
  return request({
    url: prePath + `/application/excel`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}

//打印申论列表
export function printAssetPurchOrderList(data) {
  return request({
    url: prePath + '/purch/printList',
    method: 'post',
    data,
  })
}
export function printPurchInvoiceOrder(data) {
  return request({
    url: prePath + '/purchInvoiceOrder/printList',
    method: 'post',
    data,
  })
}
export function printPaymentOrder(data) {
  return request({
    url: prePath + '/paymentOrder/printList',
    method: 'post',
    data,
  })
}

//打印申论详情
export function printAssetPurchOrderDetail(data) {
  return request({
    url: prePath + '/purch/printDetail',
    method: 'post',
    data,
  })
}

//打印申论详情
export function printAssetPurchOrderDetailList(data) {
  return request({
    url: prePath + '/purch/details/printDetailList',
    method: 'post',
    data,
  })
}
export function printPurchInvoiceOrderDetailList(data) {
  return request({
    url: prePath + '/purchInvoiceOrder/details/printDetailList',
    method: 'post',
    data,
  })
}

//导出设备申论列表
export function exportAssetPurchOrderList(data) {
  return request({
    url: prePath + `/purch/excelList`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
export function exportPurchInvoiceOrder(data) {
  return request({
    url: prePath + `/purchInvoiceOrder/excelList`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
export function exportPaymentOrder(data) {
  return request({
    url: prePath + `/paymentOrder/excelList`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}

export function exportAssetPurchOrderDetail(data) {
  return request({
    url: prePath + `/purch/excelDetail`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
export function exportPurchInvoiceOrderDetail(data) {
  return request({
    url: prePath + `/purchInvoiceOrder/excelDetail`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
export function exportPaymentOrderDetail(data) {
  return request({
    url: prePath + `/paymentOrder/excelDetail`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}

//导出设备申论列表
export function exportAssetPurchOrderDetailList(data) {
  return request({
    url: prePath + `/purch/details/excelDetailList`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
export function exportPurchInvoiceOrderderDetailList(data) {
  return request({
    url: prePath + `/purchInvoiceOrderDetail/excelDetailList`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
export function exportPaymentOrderDetailList(data) {
  return request({
    url: prePath + `/paymentOrderDetail/excelDetailList`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}

export function getAssetPurchOrderCustomizeListPage(data) {
  return request({
    url: prePath + '/purch/customizeList/page',
    method: 'post',
    data,
  })
}
export function getPurchInvoiceOrderCustomizeListPage(data) {
  return request({
    url: prePath + '/purchInvoiceOrder/customizeList/page',
    method: 'post',
    data,
  })
}
export function getPaymentOrderCustomizeListPage(data) {
  return request({
    url: prePath + '/paymentOrder/customizeList/page',
    method: 'post',
    data,
  })
}
//采购单明细分组查询
export function getAssetPurchOrderCustomizeGroups(data) {
  return request({
    url: prePath + '/purch/customizeGroups',
    method: 'post',
    data,
  })
}

//创建采购单
export function createAssetPurchOrder(data) {
  return request({
    url: prePath + '/purch',
    method: 'post',
    data,
  })
}
export function createPurchInvoiceOrder(data) {
  return request({
    url: prePath + '/purchInvoiceOrder',
    method: 'post',
    data,
  })
}
export function createPaymentOrder(data) {
  return request({
    url: prePath + '/paymentOrder',
    method: 'post',
    data,
  })
}
//创建采购单 保存并提交
export function createAssetPurchOrderAndSave(data) {
  return request({
    url: prePath + '/purch/saveAndSubmit',
    method: 'post',
    data,
  })
}
export function createPurchInvoiceOrderAndSave(data) {
  return request({
    url: prePath + '/purchInvoiceOrder/saveAndSubmit',
    method: 'post',
    data,
  })
}
export function createPaymentOrderAndSave(data) {
  return request({
    url: prePath + '/paymentOrder/saveAndSubmit',
    method: 'post',
    data,
  })
}
//更新采购单
export function updateAssetPurchOrder(data) {
  return request({
    url: prePath + '/purch',
    method: 'put',
    data,
  })
}
export function updatePaymentOrder(data) {
  return request({
    url: prePath + '/paymentOrder',
    method: 'put',
    data,
  })
}
export function updatePurchInvoiceOrder(data) {
  return request({
    url: prePath + '/purchInvoiceOrder',
    method: 'put',
    data,
  })
}
//根据ID查询采购单
export function getAssetPurchOrderById(id) {
  return request({
    url: prePath + '/purch/' + id,
    method: 'get',
  })
}
export function getPurchInvoiceOrderById(id) {
  return request({
    url: prePath + '/purchInvoiceOrder/' + id,
    method: 'get',
  })
}
export function getPaymentOrderOrderById(id) {
  return request({
    url: prePath + '/paymentOrder/' + id,
    method: 'get',
  })
}

//采购单明细自定义查询
export function getAssetPurchOrdersDetailCustomizeListAll(data) {
  return request({
    url: prePath + '/purch/details/customizeList/all',
    method: 'post',
    data,
  })
}
export function getPurchInvoiceOrderDetailCustomizeListAll(data) {
  return request({
    url: prePath + '/purchInvoiceOrderDetail/customizeList/all',
    method: 'post',
    data,
  })
}
export function getPaymentOrderDetailCustomizeListAll(data) {
  return request({
    url: prePath + '/paymentOrderDetail/customizeList/all',
    method: 'post',
    data,
  })
}
//采购单明细自定义查询
export function getAssetPurchOrdersDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/purch/details/customizeList/page',
    method: 'post',
    data,
  })
}
export function getPurchInvoiceOrdersDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/purchInvoiceOrderDetail/customizeList/page',
    method: 'post',
    data,
  })
}
export function getPaymentOrderDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/paymentOrderDetail/customizeList/page',
    method: 'post',
    data,
  })
}
//采购单明细分组查询
export function getAssetPurchOrdersDetailCustomizeGroups(data) {
  return request({
    url: prePath + '/purch/details/customizeGroups',
    method: 'post',
    data,
  })
}
export function getPurchInvoiceOrderDetailCustomizeGroups(data) {
  return request({
    url: prePath + '/purchInvoiceOrder/details/customizeGroups',
    method: 'post',
    data,
  })
}
export function getPaymentOrderDetailCustomizeGroups(data) {
  return request({
    url: prePath + '/paymentOrder/details/customizeGroups',
    method: 'post',
    data,
  })
}

export function removeAssetPurchOrder(data) {
  return request({
    url: prePath + '/purch',
    method: 'delete',
    data,
  })
}
export function removePurchInvoiceOrder(data) {
  return request({
    url: prePath + '/purchInvoiceOrder',
    method: 'delete',
    data,
  })
}
export function removePaymentOrder(data) {
  return request({
    url: prePath + '/paymentOrder',
    method: 'delete',
    data,
  })
}

export function methodAssetPurchOrder(data, method) {
  return request({
    url: prePath + '/purch/' + method,
    method: 'post',
    data,
  })
}
export function methodPurchInvoiceOrder(data, method) {
  return request({
    url: prePath + '/purchInvoiceOrder/' + method,
    method: 'post',
    data,
  })
}
export function methodPaymentOrder(data, method) {
  return request({
    url: prePath + '/paymentOrder/' + method,
    method: 'post',
    data,
  })
}
// 提交付款表单
export function submitPaymentOrder(data) {
  return request({
    url: prePath + '/paymentOrder/flowSubmit',
    method: 'post',
    data,
  })
}

//采购单明细自定义查询
export function getAssetPurchOrdersDetailByContractId(data) {
  return request({
    url: prePath + '/purch/details/front/contract',
    method: 'post',
    data,
  })
}
export function getPurchInvoiceOrderDetailByContractId(data) {
  return request({
    url: prePath + '/purchInvoiceOrder/details/front/contract',
    method: 'post',
    data,
  })
}

//设备收货订单查询分页
export function getReceiveCustomizeListPage(data) {
  return request({
    url: prePath + '/receive/customizeList/page',
    method: 'post',
    data,
  })
}
//设备收货明细
export function getReceiveDetailsAll(data) {
  return request({
    url: prePath + '/receive/details/customizeList/all',
    method: 'post',
    data,
  })
}
//设备收货明细
export function getReceiveDetailsPage(data) {
  return request({
    url: prePath + '/receive/details/customizeList/page',
    method: 'post',
    data,
  })
}
export function getSelectForAssetAcceptancePage(data) {
  return request({
    url: prePath + '/receive/details/selectForAssetAcceptancePage',
    method: 'post',
    data,
  })
}
//设备收货明细
export function getReceiveDetailsCustomizeGroups(data) {
  return request({
    url: prePath + '/receive/details/customizeGroups',
    method: 'post',
    data,
  })
}
//新增设备收货
export function createReceive(data) {
  return request({
    url: prePath + '/receive',
    method: 'post',
    data,
  })
}
//新增设备收货 保存并提交
export function createReceiveAndSave(data) {
  return request({
    url: prePath + '/receive/saveAndSubmit',
    method: 'post',
    data,
  })
}
//修改设备收货
export function updateReceive(data) {
  return request({
    url: prePath + '/receive',
    method: 'put',
    data,
  })
}
//删除设备收货
export function deleteReceive(data) {
  return request({
    url: prePath + '/receive',
    method: 'delete',
    data,
  })
}

//确认设备收货
export function confirmReceive(data) {
  return request({
    url: prePath + '/receive/confirm',
    method: 'post',
    data,
  })
}
//撤回设备收货
export function revokeReceive(data) {
  return request({
    url: prePath + '/receive/revoke',
    method: 'post',
    data,
  })
}
//提交设备收货
export function submitReceive(data) {
  return request({
    url: prePath + '/receive/submit',
    method: 'post',
    data,
  })
}
//获取一条收货单
export function getReceiveById(id) {
  return request({
    url: prePath + '/receive/' + id,
    method: 'get',
  })
}

//收货获取发货单详情
export function getReceivingDetailByDeliver(data) {
  return request({
    url: prePath + '/receive/getReceivingDetailByDeliver',
    method: 'post',
    data,
  })
}
//收货获取发货单详情
export function getReceivingDetailByPurch(data) {
  return request({
    url: prePath + '/receive/getReceivingDetailByPurch',
    method: 'post',
    data,
  })
}

//收货发货单导入添加产品
export function getReceivingIndividualByDeliver(data) {
  return request({
    url: prePath + '/receive/details/getDetailByDeliver',
    method: 'post',
    data,
  })
}
//收货发货单导入添加产品
export function getReceivingIndividualByPurch(data) {
  return request({
    url: prePath + '/receive/details/getDetailByPurch',
    method: 'post',
    data,
  })
}

//设备验收订单查询分页
export function getAcceptanceCustomizeListPage(data) {
  return request({
    url: prePath + '/acceptance/customizeList/page',
    method: 'post',
    data,
  })
}
//设备验收明细
export function getAcceptanceDetailsAll(data) {
  return request({
    url: prePath + '/acceptance/details/customizeList/all',
    method: 'post',
    data,
  })
}
//设备验收明细
export function getAcceptanceDetailsPage(data) {
  return request({
    url: prePath + '/acceptance/details/customizeList/page',
    method: 'post',
    data,
  })
}
//设备验收明细
export function getAcceptanceDetailsCustomizeGroups(data) {
  return request({
    url: prePath + '/acceptance/details/customizeGroups',
    method: 'post',
    data,
  })
}
//设备验收
export function setAcceptance(data) {
  return request({
    url: prePath + '/acceptance/acceptance',
    method: 'post',
    data,
  })
}
//设备验收
export function deleteAcceptance(data) {
  return request({
    url: prePath + '/acceptance',
    method: 'delete',
    data,
  })
}
//设备验收
export function createAcceptance(data) {
  return request({
    url: prePath + '/acceptance',
    method: 'post',
    data,
  })
}
//设备验收
export function updateAcceptance(data) {
  return request({
    url: prePath + '/acceptance',
    method: 'put',
    data,
  })
}
//设备验收详情页导出
export function acceptanceEexcelDetail(data) {
  return request({
    url: prePath + '/acceptance/excelDetail',
    method: 'post',
    responseType: 'blob',
    data,
  })
}
//设备验收详情页打印
export function acceptancePrintDetail(data) {
  return request({
    url: prePath + '/acceptance/printDetail',
    method: 'post',
    data,
  })
}
//设备验收订单页导出
export function acceptanceExcelList(data) {
  return request({
    url: prePath + '/acceptance/excelList',
    method: 'post',
    responseType: 'blob',
    data,
  })
}
//设备验收订单页打印
export function acceptancePrintList(data) {
  return request({
    url: prePath + '/acceptance/printList',
    method: 'post',
    data,
  })
}
//设备验收明细页导出
export function acceptanceDetailsExcel(data) {
  return request({
    url: prePath + '/acceptance/details/excel',
    method: 'post',
    responseType: 'blob',
    data,
  })
}
//设备验收明细页打印
export function acceptanceDetailsPrint(data) {
  return request({
    url: prePath + '/acceptance/details/print',
    method: 'post',
    data,
  })
}
//获取一条验收单
export function getAcceptanceById(id) {
  return request({
    url: prePath + '/acceptance/' + id,
    method: 'get',
  })
}
//收货扫码
export function receiveScan(data) {
  return request({
    url: prePath + '/receive/scan',
    method: 'post',
    data,
  })
}

//设备收货详情页导出
export function receiveExcelOrder(data) {
  return request({
    url: prePath + '/receive/excelOrder',
    method: 'post',
    responseType: 'blob',
    data,
  })
}
//设备收货详情页打印
export function receivePrintOrder(data) {
  return request({
    url: prePath + '/receive/printOrder',
    method: 'post',
    data,
  })
}
//设备验收订单页导出
export function receiveExcelOrderList(data) {
  return request({
    url: prePath + '/receive/excelOrderList',
    method: 'post',
    responseType: 'blob',
    data,
  })
}
//设备收货订单页打印
export function receivePrintOrderList(data) {
  return request({
    url: prePath + '/receive/printOrderList',
    method: 'post',
    data,
  })
}
//设备收货明细页导出
export function receiveDetailsExcelDetailList(data) {
  return request({
    url: prePath + '/receive/details/excelDetailList',
    method: 'post',
    responseType: 'blob',
    data,
  })
}
//设备收货明细页打印
export function receiveDetailsPrintDetailList(data) {
  return request({
    url: prePath + '/receive/details/printDetailList',
    method: 'post',
    data,
  })
}
/**资产管理-设备出库开始**/

export function createAssetUseExportOrder(data) {
  return request({
    url: prePath + '/assetUseExportOrders',
    method: 'post',
    data,
  })
}

// 保存并提交
export function createAssetUseExportOrderAndSave(data) {
  return request({
    url: prePath + '/assetUseExportOrders/saveAndSubmit',
    method: 'post',
    data,
  })
}

export function updateAssetUseExportOrder(data) {
  return request({
    url: prePath + '/assetUseExportOrders',
    method: 'put',
    data,
  })
}

export function getAssetUseExportOrderCustomizeList(data) {
  return request({
    url: prePath + '/assetUseExportOrders/customizeList/page',
    method: 'post',
    data,
  })
}
export function removeAssetUseExportOrder(data) {
  return request({
    url: prePath + '/assetUseExportOrders',
    method: 'delete',
    data,
  })
}
// 资产领用-单独提交
export function submitAssetUseExportOrder(data) {
  return request({
    url: prePath + '/assetUseExportOrders/submit',
    method: 'post',
    data,
  })
}
// 资产领用-批量添加
export function batchSubmitAssetUseExportOrder(data) {
  return request({
    url: prePath + '/assetUseExportOrders/batchSubmit',
    method: 'post',
    data,
  })
}
// 资产领用-提交前刷新校验
export function flushOrderDetail(data) {
  return request({
    url: prePath + `/assetUseExportOrders/flushOrderDetail`,
    method: 'post',
    data,
  })
}
// 资产领用-批量撤回
export function revokeAssetUseExportOrder(data) {
  return request({
    url: prePath + '/assetUseExportOrders/revoke',
    method: 'post',
    data,
  })
}
// 资产领用-销审
export function salesReviewUseExportOrder(data) {
  return request({
    url: prePath + '/assetUseExportOrders/cancelCheck',
    method: 'post',
    data,
  })
}
//资产领用出库-审核通过
export function approvedAssetUseExportOrders(data) {
  return request({
    url: prePath + '/assetUseExportOrders/approved',
    method: 'post',
    data,
  })
}
//资产领用出库-审核驳回
export function rejectAssetUseExportOrders(data) {
  return request({
    url: prePath + '/assetUseExportOrders/reject',
    method: 'post',
    data,
  })
}
//资产领用出库-审核拒绝
export function refuseAssetUseExportOrders(data) {
  return request({
    url: prePath + '/assetUseExportOrders/refuse',
    method: 'post',
    data,
  })
}

export function exportAssetUseExportOrder(data) {
  return request({
    url: prePath + '/assetUseExportOrders/export',
    method: 'post',
    data,
  })
}

export function detailAssetUseExportOrder(id) {
  return request({
    url: prePath + '/assetUseExportOrders/' + id,
    method: 'get',
  })
}

export function getAssetUseExportOrderDetailCustomizeList(data) {
  return request({
    url: prePath + '/assetUseExportOrderDetails/customizeList/all',
    method: 'post',
    data,
  })
}

export function getAssetUseExportOrderDetailAll(params) {
  return request({
    url: prePath + '/assetUseExportOrderDetails/all',
    method: 'get',
    params,
  })
}

export function getAssetUseExportOrderDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/assetUseExportOrderDetails/customizeList/page',
    method: 'post',
    data,
  })
}

export function getAssetUseExportOrderCustomizeGroups(data) {
  return request({
    url: prePath + '/assetUseExportOrders/customizeGroups',
    method: 'post',
    data,
  })
}
// 打印明细
export function exportExcelAssetUseExportOrderDetail(data) {
  return request({
    url: prePath + `/assetUseExportOrderDetails/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}
export function exportExcelAssetUseExportOrder(data) {
  return request({
    url: prePath + `/assetUseExportOrders/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}

export function getAssetUseExportPrint(data) {
  return request({
    url: prePath + '/assetUseExportOrders/print',
    method: 'post',
    data,
  })
}

export function assetUseExportOrderDetailsCustomizeListAll(data) {
  return request({
    url: prePath + '/assetUseExportOrderDetails/customizeList/all',
    method: 'post',
    data,
  })
}
export function selectBuildCard(data) {
  return request({
    url: prePath + '/assetStoreOrders/selectBuildCard',
    method: 'post',
    data,
  })
}

export function assetUseExportOrderDetailsCustomizeListPage(data) {
  return request({
    url: prePath + '/assetUseExportOrderDetails/customizeList/page',
    method: 'post',
    data,
  })
}

/**资产管理-设备出库结束**/
/**资产管理-设备入库开始**/

export function createAssetStoreOrder(data) {
  return request({
    url: prePath + '/assetStoreOrders',
    method: 'post',
    data,
  })
}
// 保存并提交
export function createAssetStoreOrderAndSave(data) {
  return request({
    url: prePath + '/assetStoreOrders/saveAndSubmit',
    method: 'post',
    data,
  })
}

export function updateAssetStoreOrder(data) {
  return request({
    url: prePath + '/assetStoreOrders',
    method: 'put',
    data,
  })
}

export function getAssetStoreOrderCustomizeList(data) {
  return request({
    url: prePath + '/assetStoreOrders/customizeList/page',
    method: 'post',
    data,
  })
}
export function removeAssetStoreOrder(data) {
  return request({
    url: prePath + '/assetStoreOrders',
    method: 'delete',
    data,
  })
}
export function submitAssetStoreOrder(data) {
  return request({
    url: prePath + '/assetStoreOrders/submit',
    method: 'post',
    data,
  })
}
export function submitAssetStoreOrders(data) {
  return request({
    url: prePath + '/assetStoreOrders/batchSubmit',
    method: 'post',
    data,
  })
}
//报修单-批准通过
export function approvedAssetStore(data) {
  return request({
    url: prePath + '/assetStoreOrders/approved',
    method: 'post',
    data,
  })
}
//报修单-驳回通过
export function rejectAssetStore(data) {
  return request({
    url: prePath + '/assetStoreOrders/reject',
    method: 'post',
    data,
  })
}
//报修单-拒绝通过
export function refuseAssetStore(data) {
  return request({
    url: prePath + '/assetStoreOrders/refuse',
    method: 'post',
    data,
  })
}
export function cancelCheckStoreOrder(data) {
  return request({
    url: prePath + '/assetStoreOrders/cancelCheck',
    method: 'post',
    data,
  })
}

export function revokeAssetStoreOrder(data) {
  return request({
    url: prePath + '/assetStoreOrders/revoke',
    method: 'post',
    data,
  })
}

export function storeAssetStoreOrder(data) {
  return request({
    url: prePath + '/assetStoreOrders/store',
    method: 'post',
    data,
  })
}

export function detailAssetStoreOrder(id) {
  return request({
    url: prePath + '/assetStoreOrders/' + id,
    method: 'get',
  })
}

export function getAssetStoreOrderDetailCustomizeList(data) {
  return request({
    url: prePath + '/assetStoreOrderDetails/customizeList/all',
    method: 'post',
    data,
  })
}

export function getAssetStoreOrderDetailAll(params) {
  return request({
    url: prePath + '/assetStoreOrderDetails/all',
    method: 'get',
    params,
  })
}

export function getAssetStoreOrderDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/assetStoreOrderDetails/customizeList/page',
    method: 'post',
    data,
  })
}

export function getAssetStoreOrderCustomizeGroups(data) {
  return request({
    url: prePath + '/assetStoreOrderDetails/customizeGroups',
    method: 'post',
    data,
  })
}
// 打印明细
export function exportExcelAssetStoreOrderDetail(data) {
  return request({
    url: prePath + `/assetStoreOrderDetails/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}
export function exportExcelAssetStoreOrder(data) {
  return request({
    url: prePath + `/assetStoreOrders/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}

export function getAssetStorePrint(data) {
  return request({
    url: prePath + '/assetStoreOrders/print',
    method: 'post',
    data,
  })
}

export function getDeviceReceiveStoreOrderDetailAll(params) {
  return request({
    url: prePath + '/receive/details/all',
    method: 'get',
    params,
  })
}

//设备收货订单查询分页
export function getReceiveCustomizeListStorePage(data) {
  return request({
    url: prePath + '/receive/customizeListStorePage/page',
    method: 'post',
    data,
  })
}

/**资产管理-设备入库结束**/

/**资产退货**/

//资产退货获取订单列表
export function assetReturnCustomizeListPage(data) {
  return request({
    url: prePath + '/assetReturn/customizeList/page',
    method: 'post',
    data,
  })
}
//资产退货新增
export function craterAssetReturn(data) {
  return request({
    url: prePath + '/assetReturn',
    method: 'post',
    data,
  })
}
//资产退货新增 保存并新增
export function craterAssetReturnAndSave(data) {
  return request({
    url: prePath + '/assetReturn/saveAndSubmit',
    method: 'post',
    data,
  })
}
//资产退货修改
export function updateAssetReturn(data) {
  return request({
    url: prePath + '/assetReturn',
    method: 'put',
    data,
  })
}
//资产退货删除
export function delAssetReturn(data) {
  return request({
    url: prePath + '/assetReturn',
    method: 'delete',
    data,
  })
}
//资产退货获取一条
export function getAssetReturnById(id) {
  return request({
    url: prePath + '/assetReturn/' + id,
    method: 'get',
  })
}
//资产退货取消
export function assetReturnCancel(data) {
  return request({
    url: prePath + '/assetReturn/cancel',
    method: 'post',
    data,
  })
}
//资产退货审核
export function assetReturnCheck(data) {
  return request({
    url: prePath + '/assetReturn/check',
    method: 'post',
    data,
  })
}
//资产退货确认
export function assetReturnConfirm(data) {
  return request({
    url: prePath + '/assetReturn/confirm',
    method: 'post',
    data,
  })
}
//资产退货出库
export function assetReturnExport(data) {
  return request({
    url: prePath + '/assetReturn/export',
    method: 'post',
    data,
  })
}
//资产退货驳回
export function assetReturnReject(data) {
  return request({
    url: prePath + '/assetReturn/reject',
    method: 'post',
    data,
  })
}
//资产退货复核
export function assetReturnReview(data) {
  return request({
    url: prePath + '/assetReturn/review',
    method: 'post',
    data,
  })
}
//资产退货撤回
export function assetReturnRevoke(data) {
  return request({
    url: prePath + '/assetReturn/revoke',
    method: 'post',
    data,
  })
}
//资产退货提交
export function assetReturnSubmit(data) {
  return request({
    url: prePath + '/assetReturn/submit',
    method: 'post',
    data,
  })
}
//资产退货订单页打印
export function assetReturnPrintList(data) {
  return request({
    url: prePath + '/assetReturn/print',
    method: 'post',
    data,
  })
}
//资产退货订单页导出
export function assetReturnExcel(data) {
  return request({
    url: prePath + `/assetReturn/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}
//资产退货详情页打印
export function assetReturnPrintOrder(data) {
  return request({
    url: prePath + '/assetReturn/printOrder',
    method: 'post',
    data,
  })
}
//资产退货详情页导出
export function assetReturnExcelOrder(data) {
  return request({
    url: prePath + `/assetReturn/excelOrder`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}
//资产退货明细页打印
export function assetReturnDetailPrintDetailList(data) {
  return request({
    url: prePath + '/assetReturnDetail/printDetailList',
    method: 'post',
    data,
  })
}
//资产退货明细页导出
export function assetReturnDetailExcelDetailList(data) {
  return request({
    url: prePath + `/assetReturnDetail/excelDetailList`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}
//资产退货明细
export function assetReturnDetailCustomizeListAll(data) {
  return request({
    url: prePath + '/assetReturnDetail/customizeList/all',
    method: 'post',
    data,
  })
}
//资产退货明细分组
export function assetReturnDetailCustomizeGroupsGroup(data) {
  return request({
    url: prePath + '/assetReturnDetail/customizeGroups',
    method: 'post',
    data,
  })
}
//资产退货明细分页
export function assetReturnDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/assetReturnDetail/customizeList/page',
    method: 'post',
    data,
  })
}

/***资产退库***/
//资产退库新增
export function createAssetReturnDepot(data) {
  return request({
    url: prePath + '/assetReturnDepot',
    method: 'post',
    data,
  })
}
// 保存并提交
export function createAssetReturnDepotAndSave(data) {
  return request({
    url: prePath + '/assetReturnDepot/saveAndSubmit',
    method: 'post',
    data,
  })
}
//资产退库修改
export function updateAssetReturnDepot(data) {
  return request({
    url: prePath + '/assetReturnDepot',
    method: 'put',
    data,
  })
}
//资产退库获取一条
export function getAssetReturnDepotById(id) {
  return request({
    url: prePath + '/assetReturnDepot/' + id,
    method: 'get',
  })
}
//资产退库删除
export function deleteAssetReturnDepot(data) {
  return request({
    url: prePath + '/assetReturnDepot',
    method: 'delete',
    data,
  })
}
//资产退库驳回
export function rejectAssetReturnDepot(data) {
  return request({
    url: prePath + '/assetReturnDepot/reject',
    method: 'post',
    data,
  })
}
//资产退库列表驳回-流程
export function flowRejectReturnDepot(data) {
  return request({
    url: prePath + '/assetReturnDepot/flowReject',
    method: 'post',
    data,
  })
}
//资产退库复核
export function reviewAssetReturnDepot(data) {
  return request({
    url: prePath + '/assetReturnDepot/review',
    method: 'post',
    data,
  })
}
//资产退库撤回
export function revokeAssetReturnDepot(data) {
  return request({
    url: prePath + '/assetReturnDepot/revoke',
    method: 'post',
    data,
  })
}
//资产退库提交
export function submitAssetReturnDepot(data) {
  return request({
    url: prePath + '/assetReturnDepot/submit',
    method: 'post',
    data,
  })
}
//资产退库提交-流程
export function flowSubmitReturnDepot(data) {
  return request({
    url: prePath + '/assetReturnDepot/flowSubmit',
    method: 'post',
    data,
  })
}
//资产退库退库
export function moveAssetReturnDepot(data) {
  return request({
    url: prePath + '/assetReturnDepot/move',
    method: 'post',
    data,
  })
}
//资产退库审核
export function checkAssetReturnDepot(data) {
  return request({
    url: prePath + '/assetReturnDepot/approved',
    method: 'post',
    data,
  })
}
//资产退审核-流程
export function flowApprovedReturnDepot(data) {
  return request({
    url: prePath + '/assetReturnDepot/flowApproved',
    method: 'post',
    data,
  })
}
//资产退库
export function cancelAssetReturnDepot(data) {
  return request({
    url: prePath + '/assetReturnDepot/cancelAudit',
    method: 'post',
    data,
  })
}
//资产退库列表拒绝
export function refuseReturnDepot(data) {
  return request({
    url: prePath + '/assetReturnDepot/refuse',
    method: 'post',
    data,
  })
}
//资产退库列表拒绝-流程
export function flowRefuseReturnDepot(data) {
  return request({
    url: prePath + '/assetReturnDepot/flowRefuse',
    method: 'post',
    data,
  })
}

//资产退库订单
export function assetReturnDepotCustomizeListPage(data) {
  return request({
    url: prePath + '/assetReturnDepot/customizeList/page',
    method: 'post',
    data,
  })
}
//资产退库明细
export function assetReturnDepotDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/assetReturnDepotDetail/customizeList/page',
    method: 'post',
    data,
  })
}
//资产退库明细
export function assetReturnDepotDetailCustomizeListAll(data) {
  return request({
    url: prePath + '/assetReturnDepotDetail/customizeList/all',
    method: 'post',
    data,
  })
}
//资产退库分组
export function assetReturnDepotDetailCustomizeGroups(data) {
  return request({
    url: prePath + '/assetReturnDepotDetail/customizeGroups',
    method: 'post',
    data,
  })
}
//资产退库订单页打印
export function assetReturnDepotPrintList(data) {
  return request({
    url: prePath + '/assetReturnDepot/print',
    method: 'post',
    data,
  })
}
//资产退库订单页导出
export function assetReturnDepotExcel(data) {
  return request({
    url: prePath + `/assetReturnDepot/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}
//资产退库详情页打印
export function assetReturnDepotPrintOrder(data) {
  return request({
    url: prePath + '/assetReturnDepot/printOrder',
    method: 'post',
    data,
  })
}
//资产退库详情页导出
export function assetReturnDepotExcelOrder(data) {
  return request({
    url: prePath + `/assetReturnDepot/excelOrder`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}
//资产退库明细页打印
export function assetReturnDepotDetailPrintDetailList(data) {
  return request({
    url: prePath + '/assetReturnDepotDetail/printDetailList',
    method: 'post',
    data,
  })
}
//资产退库明细页导出
export function assetReturnDepotDetailExcelDetailList(data) {
  return request({
    url: prePath + `/assetReturnDepotDetail/excelDetailList`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}

/***资产移库***/
//资产移库新增
export function createAssetMoveDepot(data) {
  return request({
    url: prePath + '/assetMoveDepot',
    method: 'post',
    data,
  })
}
// 保存并提交
export function createAssetMoveDepotAndSave(data) {
  return request({
    url: prePath + '/assetMoveDepot/saveAndSubmit',
    method: 'post',
    data,
  })
}
//资产移库修改
export function updateAssetMoveDepot(data) {
  return request({
    url: prePath + '/assetMoveDepot',
    method: 'put',
    data,
  })
}
//资产退库获取一条
export function getAssetMoveDepotById(id) {
  return request({
    url: prePath + '/assetMoveDepot/' + id,
    method: 'get',
  })
}
//资产移库删除
export function deleteAssetMoveDepot(data) {
  return request({
    url: prePath + '/assetMoveDepot',
    method: 'delete',
    data,
  })
}
//资产移库驳回
export function rejectAssetMoveDepot(data) {
  return request({
    url: prePath + '/assetMoveDepot/reject',
    method: 'post',
    data,
  })
}
//资产移库复核
export function reviewAssetMoveDepot(data) {
  return request({
    url: prePath + '/assetMoveDepot/review',
    method: 'post',
    data,
  })
}
//资产移库撤回
export function revokeAssetMoveDepot(data) {
  return request({
    url: prePath + '/assetMoveDepot/revoke',
    method: 'post',
    data,
  })
}
//资产移库提交
export function submitAssetMoveDepott(data) {
  return request({
    url: prePath + '/assetMoveDepot/submit',
    method: 'post',
    data,
  })
}
export function batchSubmitAssetMoveDepott(data) {
  return request({
    url: prePath + '/assetMoveDepot/batchSubmit',
    method: 'post',
    data,
  })
}
//资产移库移库
export function moveAssetMoveDepot(data) {
  return request({
    url: prePath + '/assetMoveDepot/move',
    method: 'post',
    data,
  })
}
//资产移库审核
export function checkAssetMoveDepot(data) {
  return request({
    url: prePath + '/assetMoveDepot/approved',
    method: 'post',
    data,
  })
}
//资产移库拒绝
export function refuseAssetMoveDepot(data) {
  return request({
    url: prePath + '/assetMoveDepot/refuse',
    method: 'post',
    data,
  })
}
//资产移库销审
export function cancelAuditAssetMoveDepot(data) {
  return request({
    url: prePath + '/assetMoveDepot/cancelAudit',
    method: 'post',
    data,
  })
}
//资产移库取消
export function cancelAssetMoveDepot(data) {
  return request({
    url: prePath + '/assetMoveDepot/cancel',
    method: 'post',
    data,
  })
}
//资产移库订单
export function assetMoveDepotCustomizeListPage(data) {
  return request({
    url: prePath + '/assetMoveDepot/customizeList/page',
    method: 'post',
    data,
  })
}
//资产移库明细
export function assetMoveDepotDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/assetMoveDepotDetail/customizeList/page',
    method: 'post',
    data,
  })
}
//资产移库明细
export function assetMoveDepotDetailCustomizeListAll(data) {
  return request({
    url: prePath + '/assetMoveDepotDetail/customizeList/all',
    method: 'post',
    data,
  })
}
//资产移库分组
export function assetMoveDepotDetailCustomizeGroups(data) {
  return request({
    url: prePath + '/assetMoveDepotDetail/customizeGroups',
    method: 'post',
    data,
  })
}
//资产移库订单页打印
export function assetMoveDepotPrintList(data) {
  return request({
    url: prePath + '/assetMoveDepot/print',
    method: 'post',
    data,
  })
}
//资产移库订单页导出
export function assetMoveDepotExcel(data) {
  return request({
    url: prePath + `/assetMoveDepot/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}
//资产移库详情页打印
export function assetMoveDepotPrintOrder(data) {
  return request({
    url: prePath + '/assetMoveDepot/printOrder',
    method: 'post',
    data,
  })
}
//资产移库详情页导出
export function assetMoveDepotExcelOrder(data) {
  return request({
    url: prePath + `/assetMoveDepot/excelOrder`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}
//资产移库明细页打印
export function assetMoveDepotDetailPrintDetailList(data) {
  return request({
    url: prePath + '/assetMoveDepotDetail/printDetailList',
    method: 'post',
    data,
  })
}
//资产移库明细页导出
export function assetMoveDepotDetailExcelDetailList(data) {
  return request({
    url: prePath + `/assetMoveDepotDetail/excelDetailList`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}
//资产财务信息流水
export function getFinancialDetailAll(params) {
  return request({
    url: prePath + '/financialDetail/all',
    method: 'get',
    params,
  })
}
//【资产入库】-导出
export function excelForListAssetStoreOrders(data) {
  return request({
    url: prePath + `/assetStoreOrders/excelForList`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}
//【资产入库】-打印
export function printForListAssetStoreOrders(data) {
  return request({
    url: prePath + '/assetStoreOrders/printForList',
    method: 'post',
    data,
  })
}
//【资产领用出库】-导出
export function excelForListAssetUseExportOrders(data) {
  return request({
    url: prePath + `/assetUseExportOrders/excelForList`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}
//【资产领用出库】-打印
export function printForListAssetUseExportOrders(data) {
  return request({
    url: prePath + '/assetUseExportOrders/printForList',
    method: 'post',
    data,
  })
}
// 资产入库批量建卡
export function assetStoreOrdersBuild(data) {
  return request({
    url: prePath + '/assetStoreOrders/build',
    method: 'post',
    data,
  })
}
// 资产收获批量建卡
export function assetReceiveBuild(data) {
  return request({
    url: prePath + '/receive/build',
    method: 'post',
    data,
  })
}
// 资产收获批量建卡
export function assetReceiveValidate(data) {
  return request({
    url: prePath + '/receive/validate',
    method: 'post',
    data,
  })
}
export function createCapitalProject(data) {
  return request({
    url: prePath + '/settings/capitalProject',
    method: 'post',
    data,
  })
}
export function createCapitalProjectAndSave(data) {
  return request({
    url: prePath + '/settings/capitalProject/saveAndSubmit',
    method: 'post',
    data,
  })
}
export function updateCapitalProject(data) {
  return request({
    url: prePath + '/settings/capitalProject',
    method: 'put',
    data,
  })
}
export function deleteCapitalProject(data) {
  return request({
    url: prePath + '/settings/capitalProject',
    method: 'delete',
    data,
  })
}
export function getCapitalProjectById(id) {
  return request({
    url: prePath + '/settings/capitalProject/' + id,
    method: 'get',
  })
}
export function getCapitalProjectCustomizeListPage(data) {
  return request({
    url: prePath + '/settings/capitalProject/customizeList/page',
    method: 'post',
    data,
  })
}
export function submitCapitalProject(data) {
  return request({
    url: prePath + '/settings/capitalProject/submit',
    method: 'post',
    data,
  })
}
export function revokeCapitalProject(data) {
  return request({
    url: prePath + '/settings/capitalProject/revoke',
    method: 'post',
    data,
  })
}

export function getCapitalProjectDetailsById(id) {
  return request({
    url: prePath + '/settings/capitalProject/details/' + id,
    method: 'get',
  })
}

export function excelForListCapitalProject(data) {
  return request({
    url: prePath + `/settings/capitalProject/excelForList`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}
export function excelCapitalProject(data) {
  return request({
    url: prePath + `/settings/capitalProject/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}
export function getReceivingDetailByContract(data) {
  return request({
    url: prePath + '/receive/getReceivingDetailByContract',
    method: 'post',
    data,
  })
}
export function getReceivingIndividualByContract(data) {
  return request({
    url: prePath + '/receive/details/getDetailByContract',
    method: 'post',
    data,
  })
}
export function getStoreDetailByContract(data) {
  return request({
    url: prePath + '/assetStoreOrders/getStoreDetailByContract',
    method: 'post',
    data,
  })
}
export function checkContractDetailStockManage(data) {
  return request({
    url: prePath + '/assetStoreOrders/checkContractDetailStockManage',
    method: 'post',
    data,
  })
}
export function getStoreDetailByReceive(data) {
  return request({
    url: prePath + '/assetStoreOrders/getStoreDetailByReceive',
    method: 'post',
    data,
  })
}

export function getPendStoreReceivePage(params) {
  return request({
    url: prePath + '/receive/getPendStoreReceivePage',
    method: 'get',
    params,
  })
}

export function getCanCreateCarByAssetStore(params) {
  return request({
    url: prePath + '/assetStoreOrderDetails/getCanCreateCarByAssetStore',
    method: 'get',
    params,
  })
}
export function getCanCreateCarByAssetReceiving(params) {
  return request({
    url: prePath + '/receive/details/getCanCreateCarByAssetReceiving',
    method: 'get',
    params,
  })
}
// 查询资产分类详情
export function getAccountingInterval(params) {
  return request({
    url: prePath + '/settings/fiscalPeriod',
    method: 'get',
    params,
  })
}
//获取当前会计期间
export function getCurrentFiscalPeriod(data) {
  return request({
    url: prePath + '/settings/fiscalPeriod/getCurrentFiscalPeriod',
    method: 'post',
    data,
  })
}
export function getAssetAnalysisPage(params) {
  return request({
    url: prePath + '/analy/assetAnalysis/page',
    method: 'get',
    params,
  })
}

export function batchInsertAssetAnalysis(data) {
  return request({
    url: prePath + '/analy/assetAnalysis/batchInsert',
    method: 'post',
    data,
  })
}
export function updateAssetAnalysis(data) {
  return request({
    url: prePath + '/analy/assetAnalysis',
    method: 'put',
    data,
  })
}
export function getAssetAnalysisById(id) {
  return request({
    url: prePath + '/analy/assetAnalysis/' + id,
    method: 'get',
  })
}
export function deleteAssetAnalysis(data) {
  return request({
    url: prePath + '/analy/assetAnalysis',
    method: 'delete',
    data,
  })
}
export function deleteAssetAnalyPlanProjectDetail(data) {
  return request({
    url: prePath + '/analy/planProjectDetail',
    method: 'delete',
    data,
  })
}
export function getIncomeCostDetailPage(params) {
  return request({
    url: prePath + '/incomeCostDetail/page',
    method: 'get',
    params,
  })
}
export function getIncomeCostDetailById(id) {
  return request({
    url: prePath + '/incomeCostDetail/' + id,
    method: 'get',
  })
}
export function batchInsertIncomeCostDetail(data) {
  return request({
    url: prePath + '/incomeCostDetail/batchInsert',
    method: 'post',
    data,
  })
}
export function updateIncomeCostDetail(data) {
  return request({
    url: prePath + '/incomeCostDetail',
    method: 'put',
    data,
  })
}
export function deleteIncomeCostDetail(data) {
  return request({
    url: prePath + '/incomeCostDetail',
    method: 'delete',
    data,
  })
}
export function cancelSummaryIncomeCostDetail(data) {
  return request({
    url: prePath + '/incomeCostDetail/cancelSummary',
    method: 'post',
    data,
  })
}

export function summaryIncomeCostDetail(data) {
  return request({
    url: prePath + '/incomeCostDetail/summary',
    method: 'post',
    data,
  })
}

export function getAssetCostConfigPage(params) {
  return request({
    url: prePath + '/analy/assetCostConfig/page',
    method: 'get',
    params,
  })
}
export function createAssetCostConfig(data) {
  return request({
    url: prePath + '/analy/assetCostConfig',
    method: 'post',
    data,
  })
}
export function updateAssetCostConfig(data) {
  return request({
    url: prePath + '/analy/assetCostConfig',
    method: 'put',
    data,
  })
}
export function getAssetCostConfigById(id) {
  return request({
    url: prePath + '/analy/assetCostConfig/' + id,
    method: 'get',
  })
}
export function deleteAssetCostConfig(data) {
  return request({
    url: prePath + '/analy/assetCostConfig',
    method: 'delete',
    data,
  })
}
export function getAssetCostConfigDetailAll(params) {
  return request({
    url: prePath + '/analy/assetCostConfigDetail/all',
    method: 'get',
    params,
  })
}

export function getAssetCostConfigAllByAsset(params) {
  return request({
    url: prePath + '/analy/assetCostConfigDetail/allByAsset',
    method: 'get',
    params,
  })
}

export function getSelectByStandardPage(params) {
  return request({
    url: prePath + '/analy/assetAnalysis/selectByStandardPage',
    method: 'get',
    params,
  })
}
//全部汇总
export function summaryAllIncomeCostDetail(params) {
  return request({
    url: prePath + '/incomeCostDetail/allSummary',
    method: 'get',
    params,
  })
}
//全部汇总
export function pullDataIncomeCostDetail(data) {
  return request({
    url: prePath + '/incomeCostDetail/pullData',
    method: 'post',
    data,
  })
}
//全部汇总
export function syncDataIncomeCostDetail(data) {
  return request({
    url: prePath + '/incomeCostDetail/syncData',
    method: 'post',
    data,
  })
}
export function exportIncomeCostDetail(params) {
  return request({
    url: prePath + `/incomeCostDetail/excel`,
    method: 'get',
    params,
    responseType: 'blob',
  })
}
export function getSelectByIndividualPage(params) {
  return request({
    url: prePath + '/analy/assetAnalysis/selectByIndividualPage',
    method: 'get',
    params,
  })
}
export function getAssetCostConfigByAssetId(id) {
  return request({
    url: prePath + '/analy/assetCostConfig/getAssetCostConfig/' + id,
    method: 'get',
  })
}
export function scanAssetAnalysis(data) {
  return request({
    url: prePath + '/analy/assetAnalysis/scan',
    method: 'post',
    data,
  })
}
export function cancelSummaryByReportIncomeCostDetail(data) {
  return request({
    url: prePath + '/incomeCostDetail/cancelSummaryByReport',
    method: 'post',
    data,
  })
}
//保存从资产入库-批量建卡过来的资产卡片
export function batchBuildByAssetStoreOrders(data) {
  return request({
    url: prePath + '/assetStoreOrders/batchBuild',
    method: 'post',
    data,
  })
}
//保存从资产收货-批量建卡过来的资产卡片
export function batchBuildByReceive(data) {
  return request({
    url: prePath + '/receive/batchBuild',
    method: 'post',
    data,
  })
}
export function getAdjustAmortizationDeptPage(data) {
  return request({
    url: prePath + '/adjustAmortizationDept/customizeList/page',
    method: 'post',
    data,
  })
}
export function deleteAdjustAmortizationDept(data) {
  return request({
    url: prePath + '/adjustAmortizationDept',
    method: 'delete',
    data,
  })
}
export function submitAdjustAmortizationDept(data) {
  return request({
    url: prePath + '/adjustAmortizationDept/submit',
    method: 'post',
    data,
  })
}
export function checkAdjustAmortizationDept(data) {
  return request({
    url: prePath + '/adjustAmortizationDept/check',
    method: 'post',
    data,
  })
}
export function rejectAdjustAmortizationDept(data) {
  return request({
    url: prePath + '/adjustAmortizationDept/reject',
    method: 'post',
    data,
  })
}
export function revokeAdjustAmortizationDept(data) {
  return request({
    url: prePath + '/adjustAmortizationDept/revoke',
    method: 'post',
    data,
  })
}
export function cancelAdjustAmortizationDept(data) {
  return request({
    url: prePath + '/adjustAmortizationDept/cancel',
    method: 'post',
    data,
  })
}
export function adjustAdjustAmortizationDept(data) {
  return request({
    url: prePath + '/adjustAmortizationDept/adjust',
    method: 'post',
    data,
  })
}
export function excelAdjustAmortizationDeptList(data) {
  return request({
    url: prePath + '/adjustAmortizationDept/excelOrderList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}
export function printAdjustAmortizationDeptList(data) {
  return request({
    url: prePath + '/adjustAmortizationDept/printOrderList',
    method: 'post',
    data,
  })
}
export function getAdjustAmortizationDeptById(id) {
  return request({
    url: prePath + '/adjustAmortizationDept/' + id,
    method: 'get',
  })
}
export function excelAdjustAmortizationDept(data) {
  return request({
    url: prePath + '/adjustAmortizationDept/excelOrder',
    responseType: 'blob',
    method: 'post',
    data,
  })
}
export function printAdjustAmortizationDept(data) {
  return request({
    url: prePath + '/adjustAmortizationDept/printOrder',
    method: 'post',
    data,
  })
}
export function createAdjustAmortizationDept(data) {
  return request({
    url: prePath + '/adjustAmortizationDept',
    method: 'post',
    data,
  })
}
export function createAdjustAmortizationDeptAndSave(data) {
  return request({
    url: prePath + '/adjustAmortizationDept/saveAndSubmit',
    method: 'post',
    data,
  })
}
export function updateAdjustAmortizationDept(data) {
  return request({
    url: prePath + '/adjustAmortizationDept',
    method: 'put',
    data,
  })
}
export function adjustAmortizationDeptDetailCustomizeListAll(data) {
  return request({
    url: prePath + '/adjustAmortizationDeptDetail/customizeList/all',
    method: 'post',
    data,
  })
}
export function adjustAmortizationDeptDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/adjustAmortizationDeptDetail/customizeList/page',
    method: 'post',
    data,
  })
}
export function adjustAmortizationDeptDetailCustomizeGroups(data) {
  return request({
    url: prePath + '/adjustAmortizationDeptDetail/customizeGroups',
    method: 'post',
    data,
  })
}
export function excelAdjustAmortizationDeptDetail(data) {
  return request({
    url: prePath + '/adjustAmortizationDeptDetail/excelDetailList',
    responseType: 'blob',
    method: 'post',
    data,
  })
}
export function printAdjustAmortizationDeptDetail(data) {
  return request({
    url: prePath + '/adjustAmortizationDeptDetail/printDetailList',
    method: 'post',
    data,
  })
}
//校验收货单是否存在 及 详情是否验收
export function validateOrdersByReceive(data) {
  return request({
    url: prePath + '/receive/validateOrders',
    method: 'post',
    data,
  })
}
//设备收货获取采购列表
export function getPendReceivingPurchOrderList(params) {
  return request({
    url: prePath + '/purch/getPendReceivingPurchOrderList',
    method: 'get',
    params,
  })
}
// 资产卡片获取部件
export function getAssetResourceAll(params) {
  return request({
    url: prePath + '/resource/allForRepair',
    method: 'get',
    params,
  })
}

// 设备效益管理-分析方案列表
export function getAnalysisPlanPage(params) {
  return request({
    url: prePath + '/analysisPlan/page',
    method: 'get',
    params,
  })
}
// 设备效益管理-分析方案列表
export function getAnalysisPlanAll(params) {
  return request({
    url: prePath + '/analysisPlan/all',
    method: 'get',
    params,
  })
}
// 设备效益管理-新增分析方案
export function postAnalysisPlan(data) {
  return request({
    url: prePath + '/analysisPlan',
    method: 'post',
    data,
  })
}
// 设备效益管理-修改分析方案
export function putAnalysisPlan(data) {
  return request({
    url: prePath + '/analysisPlan',
    method: 'put',
    data,
  })
}
// 设备效益管理-查询分析方案基础详情
export function getAnalysisPlanById(id) {
  return request({
    url: prePath + '/analysisPlan/' + id,
    method: 'get',
  })
}
// 设备效益管理-查询分析方案详情列表
export function getAnalysisPlanDetailById(params) {
  return request({
    url: prePath + '/analysisPlanDetail/all',
    method: 'get',
    params,
  })
}
// 设备效益管理-删除分析方案
export function delAnalysisPlanById(data) {
  return request({
    url: prePath + '/analysisPlan',
    method: 'delete',
    data,
  })
}
// 设备效益管理-新增或编辑收费项目绑定
export function postAssetItemBinding(data) {
  return request({
    url: prePath + '/analysisPlan/insertProjectByPlanId',
    method: 'post',
    data,
  })
}
// 设备效益管理-删除收费项目绑定
export function delAssetItemBinding(data) {
  return request({
    url: prePath + '/analysisPlan/deleteProjectByPlanId',
    method: 'delete',
    data,
  })
}
// 设备效益管理-收费项目绑定 项目详情
export function getAssetItemBindingProById(params) {
  return request({
    url: prePath + '/analy/planProjectDetail/all',
    method: 'get',
    params,
  })
}
// 设备效益管理-支出费用配置页面 列表
export function getAnalysisCostConfigPage(params) {
  return request({
    url: prePath + '/analysisCostConfig/page',
    method: 'get',
    params,
  })
}
// 设备效益管理-支出费用配置页面 新增
export function postAnalysisCostConfig(data) {
  return request({
    url: prePath + '/analysisCostConfig',
    method: 'post',
    data,
  })
}
// 设备效益管理-支出费用配置页面 编辑
export function putAnalysisCostConfig(data) {
  return request({
    url: prePath + '/analysisCostConfig',
    method: 'put',
    data,
  })
}
// 设备效益管理-支出费用配置页面 删除
export function delAnalysisCostConfig(data) {
  return request({
    url: prePath + '/analysisCostConfig',
    method: 'delete',
    data,
  })
}
// 设备效益管理-支出费用配置页面 项目详情
export function getAnalysisCostConfigDetail(params) {
  return request({
    url: prePath + '/analysisCostConfigDetail/all',
    method: 'get',
    params,
  })
}
// 设备效益管理-支出费用配置页面 获取单条数据
export function getAnalysisCostConfigById(params) {
  return request({
    url: prePath + '/analysisCostConfig',
    method: 'get',
    params,
  })
}
// 设备效益管理-耗材费用明细/药品费用明细 新增
export function postMaterialMedicineCostDetail(data) {
  return request({
    url: prePath + '/materialMedicineCostDetail/batchInsert',
    method: 'post',
    data,
  })
}
// 设备效益管理-耗材费用明细/药品费用明细 编辑
export function putMaterialMedicineCostDetail(data) {
  return request({
    url: prePath + '/materialMedicineCostDetail',
    method: 'put',
    data,
  })
}
// 设备效益管理-耗材费用明细/药品费用明细 详情
export function getMaterialMedicineCostDetailById(id) {
  return request({
    url: prePath + '/materialMedicineCostDetail/' + id,
    method: 'get',
  })
}
// 设备效益管理-耗材费用明细/药品费用明细 删除
export function delMaterialMedicineCostDetail(data) {
  return request({
    url: prePath + '/materialMedicineCostDetail',
    method: 'delete',
    data,
  })
}
// 设备效益管理-耗材费用明细/药品费用明细 分页查询
export function getMaterialMedicineCostDetailPage(params) {
  return request({
    url: prePath + '/materialMedicineCostDetail/page',
    method: 'get',
    params,
  })
}
// 设备效益管理-耗材费用明细/药品费用明细 不分页查询
export function getMaterialMedicineCostDetailAll(params) {
  return request({
    url: prePath + '/materialMedicineCostDetail/all',
    method: 'get',
    params,
  })
}
// 设备效益管理-耗材费用明细/药品费用明细 重新计算
export function recalculateMaterialMedicineCostDetail(data) {
  return request({
    url: prePath + '/materialMedicineCostDetail/recalculate',
    method: 'post',
    data,
  })
}
// 设备效益管理-耗材费用明细/药品费用明细 导出
export function excelMaterialMedicineCostDetail(params) {
  return request({
    url: prePath + `/materialMedicineCostDetail/excel`,
    method: 'get',
    params,
    responseType: 'blob',
  })
}
// 设备效益管理-耗材费用明细/药品费用明细 选择方案绑定的资产
export function getAnalysisPlanAndAssetPage(params) {
  return request({
    url: prePath + `/analysisPlanDetail/page`,
    method: 'get',
    params,
  })
}

// 设备效益管理-人工费用明细 新增
export function postPersonnelCostDetail(data) {
  return request({
    url: prePath + '/personnelCostDetail/batchInsert',
    method: 'post',
    data,
  })
}
// 设备效益管理-人工费用明细 编辑
export function putPersonnelCostDetail(data) {
  return request({
    url: prePath + '/personnelCostDetail',
    method: 'put',
    data,
  })
}
// 设备效益管理-人工费用明细 详情
export function getPersonnelCostDetailById(id) {
  return request({
    url: prePath + '/personnelCostDetail/' + id,
    method: 'get',
  })
}
// 设备效益管理-人工费用明细 删除
export function delPersonnelCostDetail(data) {
  return request({
    url: prePath + '/personnelCostDetail',
    method: 'delete',
    data,
  })
}
// 设备效益管理-人工费用明细 分页查询
export function getPersonnelCostDetailPage(params) {
  return request({
    url: prePath + '/personnelCostDetail/page',
    method: 'get',
    params,
  })
}
// 设备效益管理-人工费用明细 不分页查询
export function getPersonnelCostDetailAll(params) {
  return request({
    url: prePath + '/personnelCostDetail/all',
    method: 'get',
    params,
  })
}
// 设备效益管理-人工费用明细 重新计算
export function recalculatePersonnelCostDetail(data) {
  return request({
    url: prePath + '/personnelCostDetail/recalculate',
    method: 'post',
    data,
  })
}
// 设备效益管理-人工费用明细 导出
export function excelPersonnelCostDetail(params) {
  return request({
    url: prePath + `/personnelCostDetail/excel`,
    method: 'get',
    params,
    responseType: 'blob',
  })
}

// 设备效益管理-方案收入数据 列表
export function getAnalysisPlanIncomeData(params) {
  return request({
    url: prePath + `/analysisPlanIncomeData/page`,
    method: 'get',
    params,
  })
}
// 设备效益管理-方案收入数据 新增
export function postAnalysisPlanIncomeData(data) {
  return request({
    url: prePath + `/analysisPlanIncomeData/batchInsert`,
    method: 'post',
    data,
  })
}
// 设备效益管理-方案收入数据 编辑
export function putAnalysisPlanIncomeData(data) {
  return request({
    url: prePath + `/analysisPlanIncomeData`,
    method: 'put',
    data,
  })
}
// 设备效益管理-方案收入数据 删除
export function delAnalysisPlanIncomeData(data) {
  return request({
    url: prePath + `/analysisPlanIncomeData`,
    method: 'delete',
    data,
  })
}
// 设备效益管理-方案收入数据 详情
export function getAnalysisPlanIncomeDataById(id) {
  return request({
    url: prePath + '/analysisPlanIncomeData/' + id,
    method: 'get',
  })
}
// 设备效益管理-方案收入数据 导出
export function excelAnalysisPlanIncomeData(params) {
  return request({
    url: prePath + `/analysisPlanIncomeData/excel`,
    method: 'get',
    params,
    responseType: 'blob',
  })
}
// 设备效益管理-方案收入数据 重新计算
export function recalculateAnalysisPlanIncomeData(data) {
  return request({
    url: prePath + `/analysisPlanIncomeData/recalculate`,
    method: 'post',
    data,
  })
}
// 设备效益管理-方案收入数据 归集
export function aggregationAnalysisPlanIncomeData(data) {
  return request({
    url: prePath + `/analysisPlanIncomeData/aggregation`,
    method: 'post',
    data,
  })
}
// 设备效益管理-方案收入数据 全部归集
export function aggregationAllAnalysisPlanIncomeData(data) {
  return request({
    url: prePath + `/analysisPlanIncomeData/aggregationAll`,
    method: 'post',
    data,
  })
}
// 设备效益管理-方案收入数据 取消归集
export function cancelAggregationAnalysisPlanIncomeData(data) {
  return request({
    url: prePath + `/analysisPlanIncomeData/cancelAggregation`,
    method: 'post',
    data,
  })
}
// 设备效益管理-方案收入数据 项目查询
export function getPlanProjectDetailPage(params) {
  return request({
    url: prePath + `/analy/planProjectDetail/page`,
    method: 'get',
    params,
  })
}
// 设备效益管理-设备收入明细 列表
export function getAssetIncomeDataPage(params) {
  return request({
    url: prePath + `/assetIncomeData/page`,
    method: 'get',
    params,
  })
}
// 设备效益管理-设备收入明细 导出
export function excelAssetIncomeData(params) {
  return request({
    url: prePath + `/assetIncomeData/excel`,
    method: 'get',
    params,
    responseType: 'blob',
  })
}
// 设备效益管理-支出明细管理 新增
export function postCostDetail(data) {
  return request({
    url: prePath + `/analy/costDetail/batchInsert`,
    method: 'post',
    data,
  })
}
// 设备效益管理-支出明细管理 分页查询
export function postCostDetailPage(data) {
  return request({
    url: prePath + `/analy/costDetail/selectCostDetailPage`,
    method: 'post',
    data,
  })
}
// 设备效益管理-支出明细管理 动态表头
export function getCostDetailTitle(params) {
  return request({
    url: prePath + `/analy/costDetail/getDynamicTitle`,
    method: 'get',
    params,
  })
}
// 设备效益管理-支出明细管理 导出
export function excelCostDetail(data) {
  return request({
    url: prePath + `/analy/costDetail/excel`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}

// 效益获取耗材配置
export function getAnalyMaterialMedicineCostPage(params) {
  return request({
    url: prePath + '/analy/materialMedicineCost/page',
    method: 'get',
    params,
  })
}
// 效益获取耗材配置
export function getAnalyMaterialMedicineCostAll(params) {
  return request({
    url: prePath + '/analy/materialMedicineCost/all',
    method: 'get',
    params,
  })
}

// 效益耗材配置新增
export function createAnalyMaterialCostBatchInsertByMonth(data) {
  return request({
    url: prePath + '/analy/materialMedicineCost/material/batchInsertByMonth',
    method: 'post',
    data,
  })
}
export function createAnalyMedicineCostBatchInsertByMonth(data) {
  return request({
    url: prePath + '/analy/materialMedicineCost/medicine/batchInsertByMonth',
    method: 'post',
    data,
  })
}
// 效益耗材配置修改
export function updateAnalyMaterialMedicineCost(data) {
  return request({
    url: prePath + '/analy/materialMedicineCost',
    method: 'PUT',
    data,
  })
}
// 效益耗材配置删除
export function delAnalyMaterialMedicineCost(data) {
  return request({
    url: prePath + '/analy/materialMedicineCost',
    method: 'delete',
    data,
  })
}
// 效益耗材配置月份
export function getAnalyMaterialMedicineCostMonthName(params) {
  return request({
    url: prePath + '/analy/materialMedicineCost/getMonthName',
    method: 'get',
    params,
  })
}

// 效益获取人员配置
export function getAnalyPersonnelCostPage(params) {
  return request({
    url: prePath + '/analy/personnelCost/page',
    method: 'get',
    params,
  })
}
// 效益获取人员配置
export function getAnalyPersonnelCostAll(params) {
  return request({
    url: prePath + '/analy/personnelCost/all',
    method: 'get',
    params,
  })
}

// 效益人员配置新增
export function createAnalyPersonnelCostBatchInsertByMonth(data) {
  return request({
    url: prePath + '/analy/personnelCost/batchInsertByMonth',
    method: 'post',
    data,
  })
}
// 效益人员配置修改
export function updateAnalyPersonnelCost(data) {
  return request({
    url: prePath + '/analy/personnelCost',
    method: 'PUT',
    data,
  })
}
// 效益人员置删除
export function delAnalyPersonnelCost(data) {
  return request({
    url: prePath + '/analy/personnelCost',
    method: 'delete',
    data,
  })
}
// 效益人员配置月份
export function getAnalyPersonnelCostMonthName(params) {
  return request({
    url: prePath + '/analy/personnelCost/getMonthName',
    method: 'get',
    params,
  })
}
export function createPurchInvoiceOrderFlowSaveAndSubmit(data) {
  return request({
    url: prePath + '/purchInvoiceOrder/flowSaveAndSubmit',
    method: 'post',
    data: {
      orderData: data,
      processDefinitionKey: 'purchOrderApply',
      flowTaskCommentDto: { approvalType: 'submit' },
    },
  })
}
export function createPaymentOrderFlowSaveAndSubmit(data) {
  return request({
    url: prePath + '/paymentOrder/flowSaveAndSubmit',
    method: 'post',
    data: {
      orderData: data,
      processDefinitionKey: 'purchOrderApply',
      flowTaskCommentDto: { approvalType: 'submit' },
    },
  })
}
// 房屋折旧费用明细 列表
export function getDepreciationExpensesHousingPage(params) {
  return request({
    url: prePath + '/analysisHouseDepreciation/page',
    method: 'get',
    params,
  })
}
// 房屋折旧费用明细 导出
export function exportDepreciationExpensesHousing(params) {
  return request({
    url: prePath + '/analysisHouseDepreciation/excel',
    method: 'get',
    responseType: 'blob',
    params,
  })
}
// 房屋折旧费用明细 导出模板
export function exportTempDepreciationExpensesHousing(params) {
  return request({
    url: '/pub/downloadexcel/analysis_house_depreciation_import',
    method: 'get',
    responseType: 'blob',
    params,
  })
}
// 房屋折旧费用明细 新增
export function addDepreciationExpensesHousing(data) {
  return request({
    url: prePath + '/analysisHouseDepreciation/handInsertList',
    method: 'post',
    data,
  })
}
// 房屋折旧费用明细 删除
export function delDepreciationExpensesHousing(data) {
  return request({
    url: prePath + '/analysisHouseDepreciation',
    method: 'delete',
    data,
  })
}
// 房屋折旧费用明细 修改
export function updateDepreciationExpensesHousing(data) {
  return request({
    url: prePath + '/analysisHouseDepreciation/handUpdateList',
    method: 'post',
    data,
  })
}
// 房屋折旧费用明细 详情
export function getDepreciationExpensesHousingDetail(params) {
  return request({
    url: prePath + '/analysisHouseDepreciation/all',
    method: 'get',
    params,
  })
}
// 房屋折旧费用明细 重新计算
export function reCalcDepreciationExpensesHousing(data) {
  return request({
    url: prePath + '/analysisHouseDepreciation/reCalc',
    method: 'post',
    data,
  })
}

// 水电费用明细 列表
export function getAnalysisUtilitiesPage(params) {
  return request({
    url: prePath + '/analysisUtilities/page',
    method: 'get',
    params,
  })
}
// 水电费用明细 导出
export function exportAnalysisUtilities(params) {
  return request({
    url: prePath + '/analysisUtilities/excel',
    method: 'get',
    responseType: 'blob',
    params,
  })
}
// 水电费用明细 导出模板
export function exportTempAnalysisUtilities(params) {
  return request({
    url: '/pub/downloadexcel/analysis_utilities_import',
    method: 'get',
    responseType: 'blob',
    params,
  })
}
// 水电费用明细 新增
export function addAnalysisUtilities(data) {
  return request({
    url: prePath + '/analysisUtilities/handInsertList',
    method: 'post',
    data,
  })
}
// 水电费用明细 删除
export function delAnalysisUtilities(data) {
  return request({
    url: prePath + '/analysisUtilities',
    method: 'delete',
    data,
  })
}
// 水电费用明细 修改
export function updateAnalysisUtilities(data) {
  return request({
    url: prePath + '/analysisUtilities/handUpdateList',
    method: 'post',
    data,
  })
}
// 水电费用明细 详情
export function getAnalysisUtilitiesDetail(params) {
  return request({
    url: prePath + '/analysisUtilities/all',
    method: 'get',
    params,
  })
}
// 水电费用明细 重新计算
export function reCalcAnalysisUtilities(data) {
  return request({
    url: prePath + '/analysisUtilities/reCalc',
    method: 'post',
    data,
  })
}

// 其他费用明细 列表
export function getAnalysisOtherPage(params) {
  return request({
    url: prePath + '/analysisOther/page',
    method: 'get',
    params,
  })
}
// 其他费用明细 导出
export function exportAnalysisOther(params) {
  return request({
    url: prePath + '/analysisOther/excel',
    method: 'get',
    responseType: 'blob',
    params,
  })
}
// 其他费用明细 导出模板
export function exportTempAnalysisOther(params) {
  return request({
    url: '/pub/downloadexcel/analysis_other_import',
    method: 'get',
    responseType: 'blob',
    params,
  })
}
// 其他费用明细 新增
export function addAnalysisOther(data) {
  return request({
    url: prePath + '/analysisOther/handInsertList',
    method: 'post',
    data,
  })
}
// 其他费用明细 删除
export function delAnalysisOther(data) {
  return request({
    url: prePath + '/analysisOther',
    method: 'delete',
    data,
  })
}
// 其他费用明细 修改
export function updateAnalysisOther(data) {
  return request({
    url: prePath + '/analysisOther/handUpdateList',
    method: 'post',
    data,
  })
}
// 其他费用明细 详情
export function getAnalysisOtherDetail(params) {
  return request({
    url: prePath + '/analysisOther/all',
    method: 'get',
    params,
  })
}
// 其他费用明细 重新计算
export function reCalcAnalysisOther(data) {
  return request({
    url: prePath + '/analysisOther/reCalc',
    method: 'post',
    data,
  })
}

// 设备折旧费用明细 列表
export function getAnalysisDepreciationPage(params) {
  return request({
    url: prePath + '/analysisDepreciation/page',
    method: 'get',
    params,
  })
}
// 设备折旧费用明细 导出
export function exportAnalysisDepreciation(params) {
  return request({
    url: prePath + '/analysisDepreciation/excel',
    method: 'get',
    responseType: 'blob',
    params,
  })
}
// 设备折旧费用明细 导出模板
export function exportTempAnalysisDepreciation(params) {
  return request({
    url: '/pub/downloadexcel/analysis_depreciation_import',
    method: 'get',
    responseType: 'blob',
    params,
  })
}
// 设备折旧费用明细 新增
export function addAnalysisDepreciation(data) {
  return request({
    url: prePath + '/analysisDepreciation/handInsertList',
    method: 'post',
    data,
  })
}
// 设备折旧费用明细 删除
export function delAnalysisDepreciation(data) {
  return request({
    url: prePath + '/analysisDepreciation',
    method: 'delete',
    data,
  })
}
// 设备折旧费用明细 修改
export function updateAnalysisDepreciation(data) {
  return request({
    url: prePath + '/analysisDepreciation/handUpdateList',
    method: 'post',
    data,
  })
}
// 设备折旧费用明细 详情
export function getAnalysisDepreciationDetail(params) {
  return request({
    url: prePath + '/analysisDepreciation/all',
    method: 'get',
    params,
  })
}
// 设备折旧费用明细 重新计算
export function reCalcAnalysisDepreciation(data) {
  return request({
    url: prePath + '/analysisDepreciation/reCalc',
    method: 'post',
    data,
  })
}
// 维修费用明细 列表
export function getAnalysisRepairPage(params) {
  return request({
    url: prePath + '/analysisRepair/page',
    method: 'get',
    params,
  })
}
// 维修费用明细 导出
export function exportAnalysisRepair(params) {
  return request({
    url: prePath + '/analysisRepair/excel',
    method: 'get',
    responseType: 'blob',
    params,
  })
}
// 维修费用明细 导出模板
export function exportTempAnalysisRepair(params) {
  return request({
    url: '/pub/downloadexcel/analysis_repair_import',
    method: 'get',
    responseType: 'blob',
    params,
  })
}
// 维修费用明细 新增
export function addAnalysisRepair(data) {
  return request({
    url: prePath + '/analysisRepair/handInsertList',
    method: 'post',
    data,
  })
}
// 维修费用明细 删除
export function delAnalysisRepair(data) {
  return request({
    url: prePath + '/analysisRepair',
    method: 'delete',
    data,
  })
}
// 维修费用明细 修改
export function updateAnalysisRepair(data) {
  return request({
    url: prePath + '/analysisRepair/handUpdateList',
    method: 'post',
    data,
  })
}
// 维修费用明细 详情
export function getAnalysisRepairDetail(params) {
  return request({
    url: prePath + '/analysisRepair/all',
    method: 'get',
    params,
  })
}
// 维修费用明细 重新计算
export function reCalcAnalysisRepair(data) {
  return request({
    url: prePath + '/analysisRepair/reCalc',
    method: 'post',
    data,
  })
}

// 养护费用明细 列表
export function getAnalysisMaintenancePage(params) {
  return request({
    url: prePath + '/analysisMaintenance/page',
    method: 'get',
    params,
  })
}
// 养护费用明细 导出
export function exportAnalysisMaintenance(params) {
  return request({
    url: prePath + '/analysisMaintenance/excel',
    method: 'get',
    responseType: 'blob',
    params,
  })
}
// 养护费用明细 导出模板
export function exportTempAnalysisMaintenance(params) {
  return request({
    url: '/pub/downloadexcel/analysis_maintenance_import',
    method: 'get',
    responseType: 'blob',
    params,
  })
}
// 养护费用明细 新增
export function addAnalysisMaintenance(data) {
  return request({
    url: prePath + '/analysisMaintenance/handInsertList',
    method: 'post',
    data,
  })
}
// 养护费用明细 删除
export function delAnalysisMaintenance(data) {
  return request({
    url: prePath + '/analysisMaintenance',
    method: 'delete',
    data,
  })
}
// 养护费用明细 修改
export function updateAnalysisMaintenance(data) {
  return request({
    url: prePath + '/analysisMaintenance/handUpdateList',
    method: 'post',
    data,
  })
}
// 养护费用明细 详情
export function getAnalysisMaintenanceDetail(params) {
  return request({
    url: prePath + '/analysisMaintenance/all',
    method: 'get',
    params,
  })
}
// 养护费用明细 重新计算
export function reCalcAnalysisMaintenance(data) {
  return request({
    url: prePath + '/analysisMaintenance/reCalc',
    method: 'post',
    data,
  })
}

export function notAuditOrder(params) {
  return request({
    url: prePath + '/notAuditOrder/page',
    method: 'get',
    params,
  })
}
export function notAuditOrderMoveMonth(data) {
  return request({
    url: prePath + '/notAuditOrder/moveMonth',
    method: 'post',
    data,
  })
}
export function refushOrderDetail(id) {
  return request({
    url: prePath + `/adjustOriginal/refushOrderDetail/${id}`,
    method: 'get',
  })
}
export function financeTypeRefushOrderDetail(id) {
  return request({
    url: prePath + `/adjustFinanceType/refushOrderDetail/${id}`,
    method: 'get',
  })
}

//资产盘盈单
export function getInventorySurplusOrderCustomizeListPage(data) {
  return request({
    url: prePath + '/inventorySurplusOrder/customizeList/page',
    method: 'post',
    data,
  })
}
export function getInventorySurplusOrderPage(params) {
  return request({
    url: prePath + '/inventorySurplusOrder/queryForAssetStore',
    method: 'get',
    params,
  })
}
//校验单据能否生成资产入库
export function inventorySurplusOrderValidateCanStore(data) {
  return request({
    url: prePath + '/inventorySurplusOrder/validateCanStore',
    method: 'post',
    data,
  })
}
export function getInventorySurplusOrderById(id) {
  return request({
    url: prePath + '/inventorySurplusOrder/' + id,
    method: 'get',
  })
}
export function getInventorySurplusOrderDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/inventorySurplusOrderDetail/customizeList/page',
    method: 'post',
    data,
  })
}
export function getInventorySurplusOrderDetailCustomizeListAll(data) {
  return request({
    url: prePath + '/inventorySurplusOrderDetail/customizeList/all',
    method: 'post',
    data,
  })
}
export function getInventorySurplusOrderDetailGroup(data) {
  return request({
    url: prePath + '/inventorySurplusOrderDetail/customizeGroups',
    method: 'post',
    data,
  })
}
//资产盘亏单
export function getInventoryLossOrderCustomizeListPage(data) {
  return request({
    url: prePath + '/inventoryLossOrder/customizeList/page',
    method: 'post',
    data,
  })
}
export function getInventoryLossOrderById(id) {
  return request({
    url: prePath + '/inventoryLossOrder/' + id,
    method: 'get',
  })
}
export function getInventoryLossOrderPage(params) {
  return request({
    url: prePath + '/inventoryLossOrder/queryForAssetDeal',
    method: 'get',
    params,
  })
}
export function getInventoryLossOrderDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/inventoryLossOrderDetail/customizeList/page',
    method: 'post',
    data,
  })
}
export function getInventoryLossOrderDetailCustomizeListAll(data) {
  return request({
    url: prePath + '/inventoryLossOrderDetail/customizeList/all',
    method: 'post',
    data,
  })
}
export function getInventoryLossOrderDetailGroup(data) {
  return request({
    url: prePath + '/inventoryLossOrderDetail/customizeGroups',
    method: 'post',
    data,
  })
}
// 生成发票
export function createInvoiceOrders(data) {
  return request({
    url: prePath + '/assetStoreOrders/createInvoiceOrders',
    method: 'post',
    data,
  })
}
//校验单据能否生成资产处置单
export function inventoryLossOrderValidateCanDeal(data) {
  return request({
    url: prePath + '/inventoryLossOrder/validateCanDeal',
    method: 'post',
    data,
  })
}
//盘亏单生成处置单扫码
export function inventoryLossOrderDetailScan(params) {
  return request({
    url: prePath + '/inventoryLossOrderDetail/scan',
    method: 'get',
    params,
  })
}

//关闭盘盈单
export function closeInventorySurplusOrder(id) {
  return request({
    url: prePath + `/inventorySurplusOrder/close/`+id,
    method: 'get',
  })
}

//盘盈单打印导出
export function exportInventorySurplusOrder(data) {
  return request({
    url: prePath + `/inventorySurplusOrder/excelOrderList`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
export function exportInventorySurplusOrderDetail(data) {
  return request({
    url: prePath + `/inventorySurplusOrder/excelOrder`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
export function exportInventorySurplusOrderDetailList(data) {
  return request({
    url: prePath + `/inventorySurplusOrder/excelDetailList`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}

export function exportInventoryLossOrder(data) {
  return request({
    url: prePath + `/inventoryLossOrder/excelOrderList`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
export function exportInventoryLossOrderDetail(data) {
  return request({
    url: prePath + `/inventoryLossOrder/excelOrder`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
export function closeInventoryLossOrder(id) {
  return request({
    url: prePath + `/inventoryLossOrder/close/`+id,
    method: 'get',
  })
}
export function exportInventoryLossOrderDetailList(data) {
  return request({
    url: prePath + `/inventoryLossOrderDetail/excelDetailList`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
// 可借设备管理 列表
export function getCanBorrowPage(data) {
  return request({
    url: prePath + '/canBorrow/customizeList/page',
    method: 'post',
    data,
  })
}

// 可借设备管理 新增
export function createCanBorrow(data) {
  return request({
    url: prePath + '/canBorrow/batchInsert  ',
    method: 'post',
    data,
  })
}

//可借设备管理 删除
export function removeCanBorrow(data) {
  return request({
    url: prePath + '/canBorrow',
    method: 'delete',
    data,
  })
}
//可借设备管理  导出
export function excelCanBorrow(data) {
  return request({
    url: prePath + `/canBorrow/excelList`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}

// 设备借用记录 列表
export function getBorrowRecordPage(data) {
  return request({
    url: prePath + '/borrowRecord/customizeList/page',
    method: 'post',
    data,
  })
}

// 设备借用记录 新增
export function createBorrowRecord(data) {
  return request({
    url: prePath + '/borrowRecord/batchInsert  ',
    method: 'post',
    data,
  })
}

// 设备借用记录 详情
export function getBorrowRecordById(id) {
  return request({
    url: prePath + '/borrowRecord/' + id,
    method: 'get',
  })
}

// 设备借用记录 修改
export function updateBorrowRecord(data) {
  return request({
    url: prePath + '/borrowRecord/batchInsert',
    method: 'put',
    data,
  })
}

//设备借用记录 删除
export function removeBorrowRecord(data) {
  return request({
    url: prePath + '/borrowRecord',
    method: 'delete',
    data,
  })
}
//设备借用记录 单个新增
export function updateBorrowRecordOne(data) {
  return request({
    url: prePath + '/borrowRecord',
    method: 'post',
    data,
  })
}
//设备借用记录 单个修改
export function updateBorrowRecordPut(data) {
  return request({
    url: prePath + '/borrowRecord',
    method: 'put',
    data,
  })
}
//设备借用记录  导出
export function excelBorrowRecord(data) {
  return request({
    url: prePath + `/borrowRecord/excelList`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}
//设备借用记录  归还
export function borrowRecordReturn(data) {
  return request({
    url: prePath + `/borrowRecord/return`,
    method: 'post',
    data,
  })
}

// 设备启停 列表
export function getUseManagePage(data) {
  return request({
    url: prePath + '/useManage/customizeList/page',
    method: 'post',
    data,
  })
}
// 设备启停新增
export function addUseManagePage(data) {
  return request({
    url: prePath + '/useManage',
    method: 'post',
    data,
  })
}
// 设备启停修改
export function updateUseManagePage(data) {
  return request({
    url: prePath + '/useManage',
    method: 'put',
    data,
  })
}
//设备启停 删除
export function deleteUseManagePage(data) {
  return request({
    url: prePath + '/useManage',
    method: 'delete',
    data,
  })
}

// 设备启停 启动
export function enabledUseManage(data) {
  return request({
    url: prePath + '/useManage/enabled',
    method: 'post',
    data,
  })
}
export function disabledUseManage(data) {
  return request({
    url: prePath + '/useManage/disabled',
    method: 'post',
    data,
  })
}
// 作废
export function canalUseManage(data) {
  return request({
    url: prePath + '/useManage/canal',
    method: 'post',
    data,
  })
}
// 设备启停 导出
export function exportUseManage(data) {
  return request({
    url: prePath + '/useManage/excel',
    method: 'post',
    data,
    responseType: 'blob',
  })
}

export function printUseManage(data) {
  return request({
    url: prePath + '/useManage/print',
    method: 'post',
    data,
  })
}

export function getUseManageById(id) {
  return request({
    url: prePath + '/useManage/' + id,
    method: 'get',
  })
}

// 设备试用 列表
export function getTrialPage(data) {
  return request({
    url: prePath + '/trial/customizeList/page',
    method: 'post',
    data,
  })
}
export function addTrialPage(data) {
  return request({
    url: prePath + '/trial',
    method: 'post',
    data,
  })
}
export function updateTrialPage(data) {
  return request({
    url: prePath + '/trial',
    method: 'put',
    data,
  })
}
export function getTrialById(id) {
  return request({
    url: prePath + '/trial/' + id,
    method: 'get',
  })
}
export function deleteTrialPage(data) {
  return request({
    url: prePath + '/trial',
    method: 'delete',
    data,
  })
}
export function submitAssetTrial(data) {
  return request({
    url: prePath + '/trial/submit',
    method: 'post',
    data,
  })
}
export function flowSubmitAssetTrial(data) {
  return request({
    url: prePath + '/trial/flowSubmit',
    method: 'post',
    data,
  })
}
export function createAssetTrialAndSave(data) {
  return request({
    url: prePath + '/trial/saveAndSubmit',
    method: 'post',
    data,
  })
}
export function checkTrial(data) {
  return request({
    url: prePath + '/trial/check',
    method: 'post',
    data,
  })
}
export function rejectTrial(data) {
  return request({
    url: prePath + '/trial/reject',
    method: 'post',
    data,
  })
}
export function refuseTrial(data) {
  return request({
    url: prePath + '/trial/refuse',
    method: 'post',
    data,
  })
}
export function revokeTrial(data) {
  return request({
    url: prePath + '/trial/revoke',
    method: 'post',
    data,
  })
}
export function cancelAuditTrial(data) {
  return request({
    url: prePath + '/trial/cancelAudit',
    method: 'post',
    data,
  })
}
export function exportAssetTrialList(data) {
  return request({
    url: prePath + `/trial/excelList`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}

export function flowSubmitTrial(data) {
  return request({
    url: prePath + '/trial/flowSubmit',
    method: 'post',
    data,
  })
}
export function completeTrial(data) {
  return request({
    url: prePath + '/trial/complete',
    method: 'post',
    data,
  })
}
export function relationAssetClassifyTrial(data) {
  return request({
    url: prePath + '/trial/relationAssetClassify',
    method: 'post',
    data,
  })
}

export function methodTrial(data, method) {
  return request({
    url: prePath + '/trial/' + method,
    method: 'post',
    data,
  })
}
export function getTrialAll(params) {
  return request({
    url: prePath + '/trial/all',
    method: 'get',
    params,
  })
}

//资产申购
export function methodAssetPurchApplication(data, method) {
  return request({
    url: prePath + '/purch/applications/' + method,
    method: 'post',
    data,
  })
}
export function getAssetPurchApplicationPage(data) {
  return request({
    url: prePath + '/purch/applications/customizeList/page',
    method: 'post',
    data,
  })
}
export function removeAssetPurchApplication(data) {
  return request({
    url: prePath + '/purch/applications',
    method: 'delete',
    data,
  })
}
export function assetApplicationsValidatePurch(data) {
  return request({
    url: prePath + '/purch/applications/validatePurch',
    method: 'post',
    data,
  })
}
export function getAssetPurchApplicationCustomizeListAll(data) {
  return request({
    url: prePath + '/purch/applicationDetails/customizeList/all',
    method: 'post',
    data,
  })
}
export function exportAssetPurchApplication(data) {
  return request({
    url: prePath + `/purch/applications/excel`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
export function getAssetPurchApplicationById(id) {
  return request({
    url: prePath + '/purch/applications/' + id,
    method: 'get',
  })
}
export function purchAssetApplicationDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/purch/applicationDetails/customizeList/page',
    method: 'post',
    data,
  })
}
export function purchAssetApplicationDetailCustomizeGroups(data) {
  return request({
    url: prePath + '/purch/applicationDetails/customizeGroups',
    method: 'post',
    data,
  })
}
export function exportAssetPurchApplicationDetail(data) {
  return request({
    url: prePath + `/purch/applicationDetails/excel`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
export function printAssetPurchApplicationDetail(data) {
  return request({
    url: prePath + `/purch/applicationDetails/printDetailList`,
    method: 'post',
    data,
  })
}
export function createAssetPurchApplication(data) {
  return request({
    url: prePath + '/purch/applications',
    method: 'post',
    data,
  })
}
export function createAssetPurchApplicationAndSave(data) {
  return request({
    url: prePath + '/purch/applications/saveAndSubmit',
    method: 'post',
    data,
  })
}
export function updateAssetPurchApplication(data) {
  return request({
    url: prePath + '/purch/applications/byPost',
    method: 'post',
    data,
  })
}
export function submitAssetPurchApplication(data) {
  return request({
    url: prePath + '/purch/applications/submit',
    method: 'post',
    data,
  })
}
export function frontAssetPurchOrderByApplicationOrder(data) {
  return request({
    url: prePath + '/purch/front/application/order',
    method: 'post',
    data,
  })
}
export function frontAssetPurchOrderByApplicationDetail(data) {
  return request({
    url: prePath + '/purch/front/application/details',
    method: 'post',
    data,
  })
}

export function applicationDetailAddProduct(data) {
  return request({
    url: prePath + '/purch/applicationDetails/selectForPurchOrder',
    method: 'post',
    data,
  })
}
export function createAssetPurchOrderFromApplication(data) {
  return request({
    url: prePath + '/purch/insetFromApplication',
    method: 'post',
    data,
  })
}
export function saveAndSubmitAssetFromApplication(data) {
  return request({
    url: prePath + '/purch/saveAndSubmitFromApplication',
    method: 'post',
    data,
  })
}
export function assetApplicationSummaryDetailAddProduct(data) {
  return request({
    url: prePath + '/purch/applicationSummaryDetail/selectForPurchOrder',
    method: 'post',
    data,
  })
}
export function createAssetPurchOrderFlowSaveAndSubmitFromApplicationt(data) {
  return request({
    url: prePath + '/purch/flowSaveAndSubmitFromApplication',
    method: 'post',
    data: {
      orderData: data,
      processDefinitionKey: 'assetPurchOrder',
      flowTaskCommentDto: { approvalType: 'submit' },
    },
  })
}
// 设备试用end
